I never seem to use the “do…while” loop so here it is just to remind me…

example from :

http://w3schools.com/php/php_looping.asp

<?php
$i=1;
do
{
$i++;
echo “The number is ” . $i . “<br />”;
}
while ($i<=5);
?>

Key difference, it ALWAYS executes once, and THEN evaluates

Comments are closed.