Re: ASP Guy Looking for "Select Case" equivalent
| From: | Rasmus Lerdorf | Date: | Fri, 19 Jan 2001 15:56:51 +0000 |
| Subject: | Re: ASP Guy Looking for "Select Case" equivalent | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-35632@lists.php.net to get a copy of this message | ||
http://php.net/switch
On Fri, 19 Jan 2001, Karl J. Stubsjoen wrote:
> Hello,
>
> What is the equivalent command to Select Case as in:
>
> Select case 10 + 2
> case 10
> 'nope
> case 11
> 'nope
> case 12
> 'yep
> case > 13
> 'yep - but case 12 comes first!
> end select
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>