Re: Quick conditional question
| From: | Greg Donald | Date: | Sat, 10 May 2003 05:59:38 +0000 |
| Subject: | Re: Quick conditional question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147092@lists.php.net to get a copy of this message | ||
> How can I shorten this syntax:
>
> If($row==1||$row==9||$row==13||$row==20) blah
switch($row){
case 1:
case 9:
case 13:
case 20
// blah
break;
}
--
Greg Donald
http://destiney.com/