Could someone suggest the best way to have the following switch statement? I don\'t know that it\'s possible to compare two values at once, but this would be ideal:
Your other option (though not pretty) is to nest the switch statements:
switch($color){ case "blue": switch($size): case "small": //do something break; break; }