[SOLVED] Opposite to in_array

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dave_c00
Forum Commoner
Posts: 37
Joined: Wed May 28, 2003 6:08 am

Opposite to in_array

Post by dave_c00 »

Hi,

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

Thanks

Dave
User avatar
Skittlewidth
Forum Contributor
Posts: 389
Joined: Wed Nov 06, 2002 9:18 am
Location: Kent, UK

Post by Skittlewidth »

perhaps

Code: Select all

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

}
?

"!" generally means not
Grim...
DevNet Resident
Posts: 1445
Joined: Tue May 18, 2004 5:32 am
Location: London, UK

Post by Grim... »

:D
Post Reply