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

For Loops in PHP Forum

View Course

124 points
Submitted by
Vishant Dhiman
about 2 years ago

fix the compiler

I am writing code of "for loop" in the compiler but it showed me "The program took too long to finish. Check your code for infinite loops and try again" plz suggest a solution for this problem.

0 votes


just click ok on the error, finish typing your code, select all your code, copy the code, refresh the page, paste the code submit.

when you are typing the code if you don't immediately close your loops it will error out. the other solution is to type for (conditions) { } and then move the cursor between the curly braces and finish typing the code.

426 points
Submitted by
Bret Wagner
about 2 years ago