Chapter 5. WORKING WITH TEXT AND HTML

WORKING WITH TEXT AND HTML

Learning how to find, transform, and delete words is a critical skill for any webmaster. Some of the functions in this chapter are fairly simple, but I'll mention them just in case you haven't seen them. The more complex functions utilize regular expressions, a powerful part of PHP that every webmaster needs to know. Let's start with some of the more elementary string operations.

#34: Extracting Part of a String

For my day job, I sell collectible cards (think baseball cards with a fantasy twist). One of the interesting things about collectible cards is that people frequently search for cards in plural form—for ...

Get Wicked Cool PHP 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.