Please tell me why my while loop is not working. I want it only to display the numbers in a given range (which in this example is from 3 to 6:
$i == 3;
while($i <= 6) {
echo "The number is: $i <br>";
$i++;
}
The echo result is:
The number is:
The number is: 1
The number is: 2
The number is: 3
The number is: 4
The number is: 5
The number is: 6
For some reason, it seems to be starting at 0 and not 3.