do...while
Statement
The do...while statement will execute a block of code at least once—it then will repeat the loop as long as a condition is true.
|
|
This program breaks a string into an array of words, in which two words are separated by one and only one space, by using the function explode(separator,string) :
|
|
The for Statement
|
|
The for statement is used when you know how many times you want to execute a statement or a list of statements.
|
|
If we were truly created by God, then why do we still occasionally bite the insides of our own mouths? — Michael McIntyre’s |