This loop showing empty page i want to run it til -60.
for($i = 6; $i <= -60; $i-=6){
echo $i; echo '</br>';
}
This loop showing empty page i want to run it til -60.
for($i = 6; $i <= -60; $i-=6){
echo $i; echo '</br>';
}
Use >=
, not <=
:
for($i = 6; $i >= -60; $i-=6){
echo $i; echo '</br>';
}
Note that >=
is greater than or equal, and <=
is less than or equal.