Page 1 of 1

Opposite to in_array

Posted: Thu Jul 08, 2004 7:19 am
by dave_c00
Hi,

I just wondered if there is an opposite function to in_array meaning not in the array??

Thanks

Dave

Posted: Thu Jul 08, 2004 7:21 am
by Skittlewidth
perhaps

Code: Select all

if (!in_array("something",$something) {

}
?

"!" generally means not

Posted: Thu Jul 08, 2004 7:47 am
by Grim...
:D