0
5
llucycodes42
The code in the example will execute the code inside the case labelled label only if the condition is true. If the condition is false, the code will execute the code inside the case labelled default.
Shortcut: switch
switch ($cond) {
case label:
break;
case label:
break;
case label:
break;
default:
}