Example
Print $i as long as $i is less than 6:
html
<?php
$i = 1;
while ($i < 6):
echo $i;
$i++;
endwhile;
?>
Definition and Usage
The endwhile keyword is used to mark the end of a while loop which was started with the while(...): syntax.
Related Pages
The while keyword.