<? 
$option=4; 
switch ($option) { 
    case 1: 
        echo "a good monkey sees no evil"; 
        break; 
    case 2: 
        echo "a good monkey speaks no evil"; 
        break; 
    case 3: 
        echo "a good monkey hears no evil"; 
        break; 
    case 4: 
        echo "a good monkey does no evil"; 
        break; 
} 
?>
Published in: PHP
Download

Related snippets