This question already has an answer here:
- in_array() and multidimensional array 22 answers
My Array looks like this:
$arr = Array();
$arr[] = Array("foo", "bar");
$arr[] = Array("test", "hello");
Now I want to check if $arr
contains an Array which contains foo
on first position.
Is there any function for this or should I just loop $arr
and search through every Array inside it?
</div>