[typo] PHP - Switch - 3. Switch Syntax

Under the “Switch Syntax” it says “A switch statement is similar to an if / elif / else statement in that you can check multiple conditions.”. Shouldn’t it say “elseif” instead of “elif”?

1 Like

elif is a Python keyword that does not exist in PHP. The correct one for PHP is elseif.

This thread will be moved to the Platform sub forum of the Community Lounge.

Link to exercise: https://www.codecademy.com/en/courses/web-beginner-en-jZv2E/0/3

nobody changed it for such a long time. Is the course not revised? In the if and else exercise it was statement that meant the opposite from what was needed by the hint.

This course (in its present form) is set to be sunsetted in the coming months, so no repairs are being made. We must work with what we have and make do.