We are always looking for input on our tutorial content. If you have a suggestion, comment, additional information on this topic that you feel should be added, drop us a line. We appreciate your input.
In this tutorial we introduce the Switch ... Case statement in PHP. The Switch statement is used to perform different actions based on different conditions. The switch statement is wondrous and magic piece of code. It's a section of the PHP language that allows you to select between different options for a value, and run different pieces of code depending on which value is set in those options. In the tutorial we discuss the Switch statement and how it is configured in the code and then use numerous examples to demonstrate how the statement can be used in your code.