I have a strange case issue, in my php code;
$sm_hours = (int)$sm_hours;  // Make it an integer
echo $sm_hours;  // is 206
    switch ($sm_hours) {
        case ($sm_hours = 0 && $sm_hours <= 120):
            echo "One";
        break;
        case ($sm_hours >= 121 && $sm_hours <= 240):
            echo "Two";
        break;
        case ($sm_hours >= 241):
            echo "Three";
        break;
    }
$sm_hours is 206 but the echo I get is One not Two. What have I missed?
Thanks
 
     
     
     
     
    