Hour 8. Working with Strings
What You’ll Learn in This Hour:
How to format strings
How to determine the length of a string
How to find a substring within a string
How to break down a string into component parts
How to remove white space from the beginning or end of a string
How to replace substrings
How to change the case of a string
The World Wide Web is very much a plain-text environment. No matter how rich Web content becomes, HTML lies behind it all. It is no accident, then, that PHP provides many functions with which you can format, investigate, and manipulate strings.
Get Sams Teach Yourself PHP in 24 Hours, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.