note 40459 deleted from control-structures.break by felipe

From: Date: Mon, 10 Dec 2007 18:47:51 +0000
Subject: note 40459 deleted from control-structures.break by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-133296@lists.php.net to get a copy of this message
Note Submitter: jody at redstarmedia dot org ---- If you are careful about repeating code when using multiple cases that pretty much do the same thing, you can use multiple cases for one block of code / one break. Below is an example. <?php switch($var) { case 'foo': case 'bar': //Processing code break; } ?>

« previous php.notes (#133296) next »