Using Endwhile PHP (Codeacademy)

This is quite easy:


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:


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 ...