In PHP, the function of a do-while loop is to do a task, over and over as long as the specified conditional statement is true. . But do-while loop always executes its block of code at least once.
Program will execute if condition is true or at first time;
Output : 2 3 4 5
Output : 0