Re: switch vs elseif
| From: | ceo at l-i-e dot com | Date: | Tue, 13 Jan 2009 20:51:33 +0000 |
| Subject: | Re: switch vs elseif | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-286262@lists.php.net to get a copy of this message | ||
I think if they didn't want us to use expressions in the case, then they wouldn't have put
support into the language for that.
I daresay you are reading more into the text than was intended...
I certainly have found switch(true) with complex expressions for case quite handy and very clear
code on several occasions.
ymmv