Start PHP Code RESULT
Execution number: 1
End PHP Code RESULT

 

The PHP Code START
<?php
$num = 1;
do {
  print "Execution number: $num<br />\n";
  $num++;
} while ($num > 200 && $num < 400 );
?>
The PHP Code END
Loop will execute once since the condition is set as:
while ($num > 200 && $num < 400 );
The condition is "greater than" 200 and "less than" 400 [201-399]
while the variable is set to equal "1"

"1" does not meet the requirements of the condition set in the loop.

Back to Bill's PHP