if (in_array($arbitraryValue,array(1,2,3,4))){
}
----- Original Message -----
From: "Ralph Jarvis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php