Get latest news and Web Designing tutoria

Saturday, 30 May 2015

PHP Do ... While loops

This type is loop is almost identical to the while loop except that the condition comes at the end:
do
statement
while (condition)
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.

Don’t worry too much about do … while loops. Concentrate on For Loop and While Loop But there is another type of loop that comes in handy - the For Each Loop First, a quick word about the break statement.

0 comments:

Post a Comment