HTML    CSS    PHP    Bootstrap    JavaScript    Flash    Dev Tools      

The Switch Case Statement

Current Time:   00:00 / Total Time:   00:00

Seek Bar Volume

Do you have a question or comment on this, or any tutorial Contact Support

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.

Title: The Switch Case Statement

Category: Essential Training
Topic: PHP
Publish Date: 2016-02-15
Views: 29
Author: Mike King

Description

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.