Questions switch

The switch statement is similar to a series of IF statements on the same expression. On 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. This is exactly what the switch statement is for. php.switch

Learn With Quiz Get Free Certifications
Advertisement