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 O’Reilly online learning.

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