View Single Post
  #1  
Old 08-17-2006, 02:02 PM
ENIGMA ENIGMA is offline
Junior Member
 
Join Date: Aug 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ENIGMA is on a distinguished road
Default What is IN (..VALUES..) in PHP?

Just curious, in other language I can easily write:

if $something IN ('AA','AB','CD') then ...

is there that easy "IN" operator in PHP? other than writing like this:

if ($something=='AA' || $something=='AB' || ...)

-OR-

strpos('AAABCD', $something)

Thanks a million for your help -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
  Webmaster Forums - View Single Post - What is IN (..VALUES..) in PHP?
View Single Post
  #1  
Old 08-17-2006, 02:02 PM
ENIGMA ENIGMA is offline
Junior Member
 
Join Date: Aug 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ENIGMA is on a distinguished road
Default What is IN (..VALUES..) in PHP?

Just curious, in other language I can easily write:

if $something IN ('AA','AB','CD') then ...

is there that easy "IN" operator in PHP? other than writing like this:

if ($something=='AA' || $something=='AB' || ...)

-OR-

strpos('AAABCD', $something)

Thanks a million for your help -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote