Chapter 17 Functions

What You’ll Learn in This Chapter:

Image Using Functions

Image Arguments and Return Values

Image Using Library Files

In this chapter you will learn how frequently used sections of code can be turned into reusable functions.

Using Functions

A function is used to make a task that might consist of many lines of code into a routine that can be called using a single instruction.

PHP contains many functions that perform a wide range of useful tasks. ...

Get Sams Teach Yourself Ajax, JavaScript and PHP All in One 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.