PHP 5.4 also allows to use arrays in switch:
<?php
$foo = 1;
$bar = 2;
switch([$foo, $bar]) {
case [1, 2]:
echo 'case 1';
break;
case [2, 2]:
echo 'case 2';
break;
case [3, 4]:
echo 'case 3';
break;
}
// Will output "case 1"
?>