The do...while Statement : While loop « Statement « PHP






The do...while Statement

 
<html>
<head>
<title>The do...while Statement</title>
</head>
<body>
<div>
<?php
    $num = 1;
    do {
      print "Execution number: $num<br />\n";
      $num++;
    } while ( $num > 200 && $num < 400 );
?>
</div>
</body>
</html>
  
  








Related examples in the same category

1.A sample while loop that counts to 10
2.A while Statement
3.Approximating a square root
4.Convert the while statement into a for statement?
5.Create a while statement that prints every odd number between 1 and 49
6.while and loop counter
7.Infinite Loops
8.Fahrenheit and Celsius table by while loop
9.Printing a
10.A while Statement