note 32294 added to control-structures.switch

From: Date: Thu, 22 May 2003 21:09:59 +0000
Subject: note 32294 added to control-structures.switch
Groups: php.notes 
Request: Send a blank email to php-notes+get-48843@lists.php.net to get a copy of this message
Does anyone know if you can place multiple variables inside a switch? In other words, instead of having a variable in the switch have something like: switch($a, b$){ then have cases based on combinations of the multiple values? such as (this is made up- don't use this) something like: case 2, 3: I guess what I am asking is if the switch can be an array of variables and what the syntax would be. thanks in advance ---- Manual Page -- http://www.php.net/manual/en/control-structures.switch.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32294 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32294&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32294&report=yes

« previous php.notes (#48843) next »