PHP Switch Case

If we have more than one tasks to executed depending upon conditions, then in such case we use switch statement in php. Switch To better understand the usage of Switch, lets consider following example. Example print value of the variable. <?php $num=4; if($num==0){ echo “The value of num is 0”; }elseif($num==1){ echo “The value of […]