Saturday, August 9, 2014

Switch Statement in PHP

$date = 'Sunday';

switch($date){
case 'Saturday';
case 'Sunday';
echo 'It is weekend!';
break;


default;
echo 'It is not weekend day!';
break;
}


?> 




No comments:

Post a Comment