Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

switch case or case php

switch ($your_variable)
{
    case 1:
    case 2:
        echo "the value is either 1 or 2.";
    break;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #switch #case #case #php
ADD COMMENT
Topic
Name
2+5 =