7 - PHP:Introduction - Do...While statement
The following example will increment the value of i at least once, and it will continue incrementing the variable i while it has a value of less than 5:
<html>
<body>
<?php
$i=0;
do
{
$i++;
echo "The number is " . $i . "<br />";
}
while ($i<5);
?>
</body>
</html>
(from w3schools.com)