View Single Post
  #2  
Old 08-17-2006, 02:03 PM
zoloby zoloby is offline
OSP Starters
 
Join Date: Jul 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
zoloby is on a distinguished road
Talking

Hi dude

Not a language construct or anything of that nature. The most similar in functionality would be in_array().

Code:

# if $something IN ('AA','AB','CD') then ...
# to...
$arr= array ( 'AA' , 'AB' , 'CD' ) ;
if ( in_array ( 'something' , $arr ) )
{

}

Have a good day -- 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
  #2  
Old 08-17-2006, 02:03 PM
zoloby zoloby is offline
OSP Starters
 
Join Date: Jul 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
zoloby is on a distinguished road
Talking

Hi dude

Not a language construct or anything of that nature. The most similar in functionality would be in_array().

Code:

# if $something IN ('AA','AB','CD') then ...
# to...
$arr= array ( 'AA' , 'AB' , 'CD' ) ;
if ( in_array ( 'something' , $arr ) )
{

}

Have a good day -- 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