O'Reilly logo

PHP 5 Recipes: A Problem-Solution Approach by Jon Stephens, Frank M. Kromann, Nathan A. Good, Lee Babin

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 6Working with Strings

Considered pretty much a staple of any programming language, the ability to work with, maneuver, and ultimately control strings is an important part of a daily programming routine. PHP, unlike other languages, has no trouble using data typing to handle strings. Thanks to the way PHP is set up—that is to say, that when a value is assigned to a variable, the variable automatically typecasts itself—working with strings has never been easier. PHP 5 has not done much to improve upon, or modify, the way strings are handled in PHP itself, but it has provided you with new and improved class functionality so you can more readily create tools to help support PHP's somewhat clunky string function naming conventions.

This chapter's ...

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