PHP Switch Statement
In the previous lessons we covered the various elements that
make up an If Statement in PHP.
However, there are times when an if statement is not the most efficient way to check
for certain conditions.
For example we might have a variable that stores travel destinations and you want
to pack according to this destination variable. In this example you might have
20 different locations that you would have to check with a nasty long block
of If/ElseIf/ElseIf/ElseIf/... statements. This doesn't sound like much fun to code,
let's see if we can do something different.
PHP Switch Statement: Speedy Checking
With the use...