Re: multiple variables

From: Date: Fri, 15 Mar 2002 15:03:08 +0000
Subject: Re: multiple variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-88655@lists.php.net to get a copy of this message
if (in_array($arbitraryValue,array(1,2,3,4))){ } ----- Original Message ----- From: "Ralph Jarvis" <jarvis@mdc-tech.gnb.ca> To: <php-general@lists.php.net> Sent: Friday, March 15, 2002 4:50 PM Subject: [PHP] multiple variables > Hi; > > An obvious question for some, but I am stumped: > > I want to use multiple optins in an "if" statement... > > if(user($arbitraryVariable)==(1 or 2 or 3 or 4)) > > What would be the proper syntax for this? > > Thanks > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#88655) next »