Now that you are aware that "else is hard" we can look at the default statement which essentially gives the switch an "else" or catch all option. If you end a switch with a default statement then if ...
The if statement is the core of most PHP programs you simply cannot avoid it. To give you one final simple example consider how you might customize a web page ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results