7 Strings
String handling: some people yawn at this topic. Unfortunately, strings are one of a programmer's most important tools. This chapter shows you what you need to know in practice.
A large percentage of all data ends up as a string, whether as the return value of a function or as input from the user. A look at the online documentation of PHP takes your breath away at irst. The list of functions for string manipulation is endless (http:// s-prs.co/v602266). But don't worry, here you will find examples and explanations for the most important string manipulations.
Note
If you need even more power, you should take a closer look at regular expressions. PHP takes over the functionality of Perl here; you can read more about this in Chapter 10 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access