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

For Loops in PHP Forum

View Course

158 points
B185ae0039163a1c4d66da971e9e5324?s=140&d=retro
Submitted by
Edwin Tell
almost 2 years ago

i cant sumbit the code.....

http://help.codecademy.com/customer/portal/articles/1414943-my-browser-crashes-when-i-submit-my-code-

Solo For Loop!



<?php
// Write your for loop below!
for ($i = 0; $i < 101; $i = i + 10) {
echo $i;
}
?>

and it is like that the code shall look like, but before i click the submit button, the freaking error comes up.


0 votes

permalink

and it want me to make an "loop" but ye, you've explained it, if i create a loop, i will get the error...............

158 points
B185ae0039163a1c4d66da971e9e5324?s=140&d=retro
Submitted by
Edwin Tell
almost 2 years ago

3 Comments

Picture Renato Marcos Oliveira almost 2 years ago

Its missing a "$" on the third part of for ..

for ($i = 10; $i < 101; $i = $i + 10)

Picture Tenzin Sherpa almost 2 years ago

same here.. i didn't miss the "$ " sign but still doesn't work :(

B185ae0039163a1c4d66da971e9e5324?s=140&d=retro Edwin Tell almost 2 years ago

thx Renato, but the tutorial i had, did say that i was supposed to look like it does in my first question here.