I want to find an array inside an array by its value.
Example: It returns "Match not found", while "Peter" is inside the $people array. But I can found "Joe".
$people = array(
"Peter" => array (
"test" => 0
),
"Joe"
);
if (in_array("Peter", $people))
{
echo "Match found";
}
else
{
echo "Match not found";
}
How can I found "Peter" in the array?