Possible Duplicate:
How to use a switch case ‘or’ in PHP?
I want to do a test using switch, this is the code I wrote:
<?php
    $moisActuelle = date("n");
    switch($moisActuelle)
    {
        case 1 || 2 || 3 : 
             echo'L\'hiver';
             break;
        case 4 || 5 || 6 : 
             echo'Le printemp';
             break;
        case 7 || 8 || 9 : 
             echo'L\'été';
             break;
        case 10 || 11 || 2 : 
             echo'L\'automne';
             break;
    }
?>
but this code is always execute the first case whatever the $moisActuelle is.
 
     
     
     
    