Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

case statement in php


<?php
switch ($i) {
    case "apple":
        echo "i is apple";
        break;
    case "bar":
        echo "i is bar";
        break;
    case "cake":
        echo "i is cake";
        break;
}
?>

Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #case #statement #php
ADD COMMENT
Topic
Name
4+2 =