Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there an in() function or something like it 1

Status
Not open for further replies.

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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top