In this tutorial you will learn about the PHP Do…While Loop and its application with practical example.
The do…while loop statement
The do…while statement will execute a block of code and then test the condition for next iteration and executes next only if condition is true, block of code executes at least once.
1 2 3 4 |
do { //Block of code to be executed comes here; }while (condition); |