The do...while statement looks like an upside-down while statement. The effective difference is that the do...while statement's code block is executed BEFORE the truth test, and not after it. NOTICE: the test condition (the while portion) must end with a semi-colon.
Example 119a sets the counter variable at 1, so the code block never executes, past the first time. This illustrates the usefulness of this type of code for situations when you want the code to execute at least once. Compare this to Example 119b.
<?php
$num = 1;
do { echo "The number is: ".$num."<br />"; $num++; } while (($num > 200) && ($num < 400));
?>