This forum is now read-only. Please use our new forums at discuss.codecademy.com.

For Loops in PHP Forum

View Course

398 points
55a57e0be39efeb58c000681_173286104
Submitted by
Dean Friedland
almost 2 years ago

3/7 Shooting error and saying to refresh page

This is my code:

for ($i = 0; $i < 101; $i + 10) {
echo $i;
}

It should be working.


0 votes

permalink

Same here, the code is right, try to report it.

837 points
55402f7f86f552e26f00058a_955624716
Submitted by
Renan Zapelini
almost 2 years ago

2 Comments

55a57e0be39efeb58c000681_173286104 Dean Friedland almost 2 years ago

Ok. I guess you need $i = $i + 10 instead of $i + 10. This just worked for me.

51c14e598c1ccc92c1006609_222499189 Amrita Khurana Matta over 1 year ago

for ($i = 0; $i < 101; $i = $i + 10){
echo $i;
}