PHP Zone

How to use a switch case in PHP?

2 Nov , 2015  

The switch statement is similar to a series of IF statements on the same expression. In many occasions, you may want to compare the same variable (or expression) with many different values, and execute a different piece of code depending on which value it equals to. This is exactly what the switch statement is for.

, , , , , ,

badge