Chapter 3

PHP Libraries


check Getting familiar with PHP libraries

check Working with text functions

check Handling numbers

check Using dates

check Playing with images

As you start creating your dynamic web applications, you’ll often find yourself wanting to perform certain functions that require quite a bit of coding, such as manipulating data or performing complex mathematical calculations. The true test of a robust programming language is in how much work it can save you by providing prebuilt code libraries that do most of the hard coding work for you. Fortunately, PHP has an extensive set of built-in libraries that can save you lots of development time as you build your web applications! This chapter dives into the basics of using the built-in libraries in PHP.

How PHP Uses Libraries

All programming languages provide libraries of functions that help you with your coding. How many there are and how they do that differs somewhat between programming languages.

Some interpreted programming languages ...

Get PHP, MySQL, & JavaScript All-in-One For Dummies now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.