31011 - The Switch Case Statement in PHP

Опубликовано: 16 Февраль 2016
на канале: OnTargetHTML5
67
2

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.