Switch case syntax
| From: | -:-Doigy-:- | Date: | Tue, 21 Aug 2001 04:52:58 +0000 |
| Subject: | Switch case syntax | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-63619@lists.php.net to get a copy of this message | ||
Hi Folks,
In a switch, I have a load of 3 letter prefixes I'm sorting by. They are
the truncated first 3 letters of alpha-numeric product codes which gives the
category of the product.
Some codes start with MB- for instance, and this causes a parsing error.
Can I fix this without changing the fact I'm switching on a 3 letter string?
Cheers