Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

switch case php

<?php
// switch statement:

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 "default message";
}
?>
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #switch #case #php
ADD COMMENT
Topic
Name
8+5 =