Chapter 16 Flow Control
What You’ll Learn on This Chapter:
Conditional Statements
Loops
In this chapter you will learn about the conditional and looping constructs that allow you to control the flow of a PHP script.
In this chapter we’ll look at two types of flow control: conditional statements, which tell your script to execute a section of code only if certain criteria are met, and loops, which indicate a block of code that is to be repeated a number of times.
Conditional Statements
A conditional statement in PHP begins with the keyword if ...
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.