note 17831 deleted from control-structures.switch by jimw

From: Date: Wed, 02 Jan 2002 11:07:55 +0000
Subject: note 17831 deleted from control-structures.switch by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-24206@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"; }

« previous php.notes (#24206) next »