Php using of case

<?php
$test=12;
switch($test){
case $test==13:
echo ‘test is equal to 12′;
break;
case $test > 12:
echo ‘test is greater than 12′;
break;
default:
echo ‘there is no matching statement’;
}
?>

Follow

Get every new post delivered to your Inbox.