home

CONDITIONAL STATEMENTS Using SWITCH Tutorial


SWITCH is same multiple IF conditions.

<?
$test = 3;
switch($test)
{
case 1:
echo "this is case 1";
break;
case 2:
echo "this is case 2";
break;
case 3:
echo "this is case 3";
break;
default:
echo "No value specified for test var";
}
?>


Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

all rights reseverd by Cramerz.com©. web development by web design company DotPeak. hosting by HostBay
all contents on cramerz are the property of Cramerz.com. web design courses