note 8056 added to switch
| From: | tom at zesty dot com | Date: | Fri, 25 Aug 2000 11:06:47 +0000 |
| Subject: | note 8056 added to switch | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-3235@lists.php.net to get a copy of this message | ||
Can you have nested switches ?
EG
switch ($var) {
case "001" : do this;
break;
case "002" : do that;
break;
case "003" : switch ($var2) {
case "001" : do this;
case "002" : do that;
};
}
http://www.php.net/manual/control-structures.switch.php