PHPのswitch ref: http://qiita.com/ukisoft/items/4727e36ec69dfe2a644a