I want to store a certain value during a switch/case in PHP, but I don't see what is wrong with this code:
<?php
$weegfactor=67;
$lus=12;
    if($weegfactor<70):
        switch($lus){
        case(1 || 7):
        $verdeling="AAABCD";
        break;
        case(2 || 8):
        $verdeling="AAABBE";
        break;
        case(3 || 9):
        $verdeling="AAAABC";
        break;
        case(4 || 10):
        $verdeling="AABBBD";
        break;
        case(5 || 11):
        $verdeling="ABBBCC";
        break;
        case(6 || 12):
        $verdeling="AABCCC";
        break;
        }
    endif;  
echo "weegfactor ",$weegfactor . '</br>' ;
echo "lus : ",$lus . '</br>';
echo "verdeling ",$verdeling;
?>
The outcome of the above code is: weegfactor 67 lus : 12 verdeling AAABCD
Which is not correct because $verdeling should be "AABCCC". What is my mistake??
 
     
     
    