note 13628 added to control-structures.switch.php
| From: | zylak at wad-net dot com dot br | Date: | Mon, 25 Jun 2001 13:44:05 +0000 |
| Subject: | note 13628 added to control-structures.switch.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-14644@lists.php.net to get a copy of this message | ||
Hello,
I'd like to know if "switch" can test if a variable matches multiple cases Ex:
switch ($action) {
case "add":
do this;
case "delete" or "remove":
do that;
}
Thanks in advance,
André Azevedo (Zylak)
http://www.php.net/manual/en/control-structures.switch.php