Learning PHP and MySQL
Example 04-15 Counting to 10 with do… while
<?php
$num = 1;
do {
echo "Number is ".$num."<br />";
$num++;
} while ($num <= 10);
echo "Done.";
?>
Posted by on 08/03 at 08:15 AM
Next entry: Example 05-01 The ubiquitous Hello world!
Previous entry: Example 04-14 A sample while loop that counts to 10