Example
Create a loop that always runs at least once:
html
<?php
$i = 5;
do {
echo $i;
echo "<br>";
$i--;
} while($i > 6);
?>
Definition and Usage
The do keyword creates a loop which always runs at least once. It is used together with the while keyword to create a do...while loop.
Related Pages
The while keyword.