Results 1 to 6 of 6
Jun 26, 2012, 10:29 #1
- Join Date
- Aug 2009
- 0 Post(s)
- 0 Thread(s)
finding specific value in ASSOC array
I'm having quite a lot of trouble with my script. I'm using in_array() which apparently after research have found out this does not work with associative arrays.
First let me tell you what I want to accomplish: All I need to do is find a specific 'id' from the associative array, there could be multiples id's but only one with a specific value which I'm searching for.
Again after doing a few google searches I tried looking for different ways. array_key_exists() was recommended but doesn't that only look for the key so if I look for a specific id = 2 it only looks for id. Or does nit not?