do while loop with counter : do while « Statement « PHP






do while loop with counter

 
<?php

$num = 11;

do {
    echo $num;
    $num++;
} while ($num <= 10);

?>
  
  








Related examples in the same category

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