Do While loop example

This is a Do while loop example in PHP, similar to the while loop earlier

<?php
$i=0;
do
{
$i++;
echo “$i<br>”;
}
while ($i<5);
?>

LEAVE A REPLY

Please enter your comment!
Please enter your name here

*