Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

switch php

switch ($i) {
    case 0:
        echo "i equals 0";
        break;
    case 1:
        echo "i equals 1";
        break;
    case 2:
        echo "i equals 2";
        break;
    default:
       echo "i is not equal to 0, 1 or 2";
}
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #switch #php
ADD COMMENT
Topic
Name
8+1 =