Loops & Decisions in PHP - The ABC's of PHP Part 8

Friday May 8th 2009 by DatabaseJournal.com Staff

This installment is guaranteed to get you thinking because today we're going to be looking at loops and decision making in PHP.

[From PHPBuilder]

In any given computer language (PHP is no exception) there has to be a way to allow the running code to decide between doing 2 different things.

If there wasn't then software would not be able to adapt based on operating conditions, or it wouldn't be able to decide between two different users.

In most languages the most basic of these is the "if" statement, which as its name implies does something if a given condition is true.

The article continues at http://phpbuilder.com/columns/peter_shaw05062009.php3

Mobile Site | Full Site