note 17831 added to control-structures.switch
| From: | bjones at dmn dot com | Date: | Thu, 27 Dec 2001 20:48:58 +0000 |
| Subject: | note 17831 added to control-structures.switch | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-23890@lists.php.net to get a copy of this message | ||
Found this to work when needing an OR evaluation in the switch statement:
switch(strtoupper($mtyp))
{
case "W":
case "3":
case "M":
case "R":
$xtra = $xtra.
"&mtrk=".urlencode($mtrk).
"&mart=".urlencode($mart).
"&mwrk=".urlencode($mwrk).
"&mfile=".urlencode($mfile).
"&mdsc=".urlencode($mdsc).
"\n";
case "C":
$xtra = $xtra.
"&mmcd=".urlencode($mmcd).
"&mxcd=".urlencode($mxcd).
"&mtrkn=".urlencode($mtrkn).
"&mtrk=".urlencode($mtrk).
"&mart=".urlencode($mart).
"&mwrk=".urlencode($mwrk).
"&mdsc=".urlencode($mdsc).
"\n";
}
--
http://www.php.net/manual/en/control-structures.switch.php
http://master.php.net/manage/user-notes.php?action=edit+17831
http://master.php.net/manage/user-notes.php?action=delete+17831
http://master.php.net/manage/user-notes.php?action=reject+17831