The foreach Statement

Oct 13, 2009 Author: LinuxAdmin
The foreach statement is similar to for in that it is basically a specializedform of the while loop. Foreach, however, unlike for, is to be used witharrays.Like for, foreach automatically performs a step…

The for statement in PHP

Oct 13, 2009 Author: City Hall
The for statement is used to create loops involving numbers. It is composedof three parts: an initialization statement, a condition, and a repetitionstatement. These three parts have important purposes…

The while Statement

Oct 01, 2009 Author: Developer
For example, to use while to echo all of the values in $HTTP_POST_VARS, youcan create a program like this: