RE: [PHP] Switch Statement || Case with multiple values?
| From: | Mark Charette | Date: | Mon, 03 Mar 2003 01:10:25 +0000 |
| Subject: | RE: [PHP] Switch Statement || Case with multiple values? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-137825@lists.php.net to get a copy of this message | ||
Duh. make that
"fo" will also run the code presented by "fum" ...
> -----Original Message-----
> From: Mark Charette [mailto:charette@woodwind.org]
>
> switch($foo)
> {
> case "fee":
> case "fie":
> ...
> break;
> case "fo":
> ...
> case "fum":
> ...
> break;
> }
>
> fee & fie are tied together, fie will also run the code presented
> by fum ...
>
> Even more flexible than comma delimited values ...