Rw wrote: > I have been trying this to no avail. > > Tryng to say the equivalent of: > > IF (var1 = 1 AND var2 = "a" or "b" or "c") > > i.e. yield true if 1 and a > OR > 1 and b > OR 1 and c I would do something like this: $CheckArr = array("a", "b", "c"); if($var1 == 1 && in_array($CheckArr, $var2)) { ..... } Regards, Johan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- [PHP] Newbie Logical opertaor question Rw
- Re: [PHP] Newbie Logical opertaor question Johan Holst Nielsen
- Re: [PHP] Newbie Logical opertaor question Martin Clifford
- Re: [PHP] Newbie Logical opertaor question Martin Clifford