$date = 'Sunday';
switch($date){
case 'Saturday';
case 'Sunday';
echo 'It is weekend!';
break;
default;
echo 'It is not weekend day!';
break;
}
?>

TNW provides the best ICT solutions for your business by the reasonable price.
TNW - ICT Solutions
Switch statement in php
- Details
- Written by Thet Naing Win
- Category: php
- Hits: 399