Problem in php (2)


hi there;
I was created a topic at 7 days ago with this title :
problem in php
but i didn't read the answer
and also a should say:
exuse me albionsrefuge for don't cheking the topic.
URL to exercise :

the error message I'm seeing : Oops, try again.
Did you set the second part of your loop correctly (the part that ends the loop)? Don't forget your semicolon!

my code:

Solo For Loop!

// Write your for loop below!
for ($i = 10; $i < 101 ; $i = $i + 1) {
echo $i;


Read the instructions again...
It says : Write a for loop that counts up by 10, all the way to 100 (e.g. 10, 20, 30...).


Should you be stepping in 10's?

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



thanks ;
but why it's false:
for ($i = 10; $i < 101 ; $i = $i + 10) {
echo "$i" ;
and whats the end of this code (i don't learn about this code):
($i = 10; $i < 101; $i += 10)


Does your code output this to the console?



but why?
i think is true
when i was writing this code the code cademy choea me this eror:
The program took too long to finish. Check your code for infinite loops and try again.


& also I tested this code in my loccal host and it was working.


The lesson may need to be refreshed. Copy your php code, refresh the page and paste it back in if not the same. Submit again and it should work assuming there are no other errors. Check the console for parsing errors.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.