Re: Quick conditional question

From: Date: Sat, 10 May 2003 06:39:15 +0000
Subject: Re: Quick conditional question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-147099@lists.php.net to get a copy of this message
You can try this $array = array(1, 9, 13, 20); if (in_array($row, $array)) blah Guillaume James Taylor a écrit:
How can I shorten this syntax: If($row==1||$row==9||$row==13||$row==20) blah Looking for something like If($row==(1||9||13||20)) But, that doesn't work. Thanks


« previous php.general (#147099) next »