note 32294 deleted from control-structures.switch by alindeman

From: Date: Thu, 22 May 2003 23:42:48 +0000
Subject: note 32294 deleted from control-structures.switch by alindeman
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-48846@lists.php.net to get a copy of this message
Note Submitter: ---- 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

« previous php.notes (#48846) next »