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
dheeraja
Forum Commoner
Posts: 36
Joined: Tue Nov 09, 2010 11:03 pm

Re: array

Post by dheeraja »

You can simply use in_array() method for the existence of any value in an array.
thinsoldier
Forum Contributor
Posts: 367
Joined: Fri Jul 20, 2007 11:29 am
Contact:

Re: array

Post by thinsoldier »

Or if(isset($myArray['myKey'])){ truthiness }

also

GOOGLE
Warning: I have no idea what I'm talking about.
Post Reply