O'Reilly logo

PHP by Robin Nixon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Images

Looping Sections of Code

Images To view the accompanying video for this lesson, please visit mhprofessional.com/nixonphp/.

In the previous lesson, you learned all about program flow control, branching, and using if(), else, and switch() statements. These are perfect for altering the program flow according to values and expressions, but not so good when you need to repetitively execute a process, such as processing a document a word at a time to find typographical errors.

   This is the type of situation where PHP’s looping statements come into their own. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required