--- title: Switch --- ## Switch In PHP, the `Switch` statement is very similar to the Javascript `Switch` statement (See the Javascript Switch Guide to compare and contrast). It allows rapid case testing with a lot of different possible conditions, the code is also more readable. ### Syntax ```php