J
John H
Guest
Why does the following code output a number only up to 5 and not up to 6? Since when the value is 5, it is less than OR equal to 5.
<?php
$i=1;
while($i<=5)
{
echo "The number is " . $i . "<br>";
$i++;
}
?>
Thanks.
<?php
$i=1;
while($i<=5)
{
echo "The number is " . $i . "<br>";
$i++;
}
?>
Thanks.