switch ($foo) { case 1: case 2: case 3: doThis(); break; case 4: //do nothing; break; default: doThat(); }