Skip to Main Content
PHP and MySQL™ Phrasebook
book

PHP and MySQL™ Phrasebook

by Christian Wenz
October 2012
Intermediate to advanced content levelIntermediate to advanced
360 pages
4h 57m
English
Addison-Wesley Professional
Content preview from PHP and MySQL™ Phrasebook

1. Manipulating Strings

Of all data types PHP supports, string data is probably the one most often used. One of the reasons for this is that, at some point, a string representation of something is needed when sending out something to the client.

PHP offers a vast number of functions suitable for strings, almost 100. In addition, regular expressions come in handy when looking for certain patterns in strings. In real life, however, only a fraction of these functions are actually used. Most of them deserve their loyal fan base, but some underestimated functions should get more attention. The phrases in this chapter offer a good mix of both: standard applications and rather unusual but very useful ways to work with strings.

Comparing Strings

strcmp($a, ...

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.
Start your free trial

You might also like

PHP 7 Programming Blueprints

PHP 7 Programming Blueprints

Jose Palala, Martin Helmich

Publisher Resources

ISBN: 9780133040340Purchase book