Counting to 10 with do ... while
<?php $num = 1; do { echo "Number is ".$num."<br />"; $num++; } while ($num <= 10); echo "Done."; ?>