note 99198 rejected from control-structures.switch by danbrown

From: Date: Mon, 02 Aug 2010 19:20:56 +0000
Subject: note 99198 rejected from control-structures.switch by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-171341@lists.php.net to get a copy of this message
Note Submitter: aarone at one-shore dot com ---- do you actually need to include a "break" statement if you call "return" inside a switch statement? switch($foo) { case 'bar': return true; break; // is this really necessary? case 'baz': return false; default: throw new Exception("neither bar nor baz"); }

« previous php.notes (#171341) next »