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

Arrays Forum

View Course » View Exercise

537 points
1e3349b3b0cfa7e87b78aff35febdbf6?s=140&d=retro
Submitted by
Lothar
about 3 years ago

Bug in 7/7

I passed the course, but the screen on the right puts out an error:

"Parse error: syntax error, unexpected T_FOREACH, expecting ';' on line 18"

which is obviously something to do with the last bit of code that the exercise tells us not to worry about:

        foreach($languages as $lang) {
        print "<p>$lang</p>";
        }

It is kind of annoying. Please fix it!


0 votes

permalink

It sounds like the parser is asking for the semicolon at the end of the unset line. I just passed this too with no errors.

329 points
E04a8624aa69d1da505fbd5d570faeaa?s=140&d=retro
Submitted by
Tzvi
about 3 years ago