While loop

This is the most basic example of a While loop in PHP

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

*