Re: How to use Do-While Loop in PHP?
As with the if you can group multiple statements within the same while loop by grouping them within parentheses or by using the following syntax :
PHP Code:
while (expr):
statement
...
endwhile;
PHP executes the statement as an expression of the while loop is evaluated as TRUE. The value of the expression is checked at the beginning of each loop, and if the value changes during the execution of the statement, execution will not stop until the end of the iteration
I do to dead flowers what people at morgues do to dead people. Suck all the moisture out, dip them in plastic, paint them up pretty and put them in a nice frame.
Bookmarks