|
Free
PHP Tutorials
|
![]() |
home |
Stay
at Home and Learn
|
|||||
PHP Tutorials |
||||||
|
Do While loops in PHP
This type is loop is almost identical to the while loop, except that the condition comes at the end: do The difference is that your statement gets executed at least once. In a normal while loop, the condition could be met before your statement gets executed. Dont worry too much about do while loops. Concentrate on For loops and While loops. But there is another type of loop that comes in handy - the For Each loop. First, a quick word about the break statement. |