Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php switch case multiple values per line

<?php
switch ($i) {
    case 0:
    case 1:
    case 2:
        echo "i is less than 3 but not negative";
        break;
    case 3:
        echo "i is 3";
}
?>
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #switch #case #multiple #values #line
ADD COMMENT
Topic
Name
6+1 =