Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php switch case array

foreach ($array[0] as $key => $value) {
    switch ($key) {
        case 'Products' :
            // do something
            break ;
        case 'customers' :
            // do something
            break ;
        case 'Models' :
            // do something
            break ;
     }
 }
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #switch #case #array
ADD COMMENT
Topic
Name
7+9 =