O'Reilly logo

Wicked Cool PHP by Brian Ward, William Steinmetz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required