I have a simple array of boolean arrays as follows:
array(
array('dog' => true),
array('cat' => true),
array('bird' =>false),
array('fish' => true)
)
How can I find an entry, such as 'cat', without a loop construct? I think I should be able to accomplish this with a php array function, but the solution is eluding me! I just want to know if 'cat' is a valid key - I'm not interested in it's value.
In the example above, 'cat' should return true, while 'turtle' should return false.