Do while loop : do while « Statement « PHP






Do while loop

 <?php
 $a = 1;
 do{
    echo $a . "<br>";
    $a++;
 }while ($a > 10);
 ?>

           
       








Related examples in the same category

1.Counting to 10 with do ... while
2.Do-While Loop
3.do while loop with counter
4.do while with integer counter
5.do...while loop is executed at least once
6.Break in Nested Loops
7.The do...while Statement