С корпусом переключателя
switch($variable){ case 'one': case 'two': case 'three': //do something amazing here break; default: //throw new Exception("You are not worth it"); break; }