Using Endwhile PHP (Codeacademy)

This is quite easy:

753d26217ba155d5aa7a98bcfec94fef003

Notice the small differences in syntax. It is similar with “switch” where you add endswitch; at the end, instead ...


Your First While Loop PHP (Codeacademy)

Here is a correct example:

753d26217ba155d5aa7a98bcfec94fef004

The syntax is quite easy to remember. Also, you need to do a simulation in your mind of what the while loop will do ...


PHP Switch Syntax from Codeacademy

Here are some examples being explained.

switch can host a number or a variable.
After you write the case statement, switch will check and echo the correct case.

Something ...