Flipkart.com

While loop in PHP

while is used to iterate through a sequence of statements. Iteration stops when the expression written within the while is false or a break statement is executed. Example of ...

For loop in PHP

For loop is also for iteration. syntax of for loop is for (expr1; expr2; expr3) statement; The first expression (expr1) is evaluated (executed) once unconditionally at ...