Aug 17, 2001 #1 lwinsor MIS Sep 22, 1999 4 CA I want to test if $foo is equal to 1 or 5 or 9 or 'apples' Is there a function like: $isthere= $foo in(1,5,9, 'apples'); I've seen it in other languages, but I don't knwo the equivalent here. Thanks.
I want to test if $foo is equal to 1 or 5 or 9 or 'apples' Is there a function like: $isthere= $foo in(1,5,9, 'apples'); I've seen it in other languages, but I don't knwo the equivalent here. Thanks.
Aug 17, 2001 1 #2 inlandpac Programmer Jun 18, 2000 235 US try $inarray = in_array($foo,$array); Chad. ICQ: 54380631 Upvote 0 Downvote