if your array like this
<?php
$array = array(
function in_multiarray array($elem"name" => "Robert", $array"Age" => "22", "Place" => "TN"),
{ array("name" => "Henry", "Age" => "21", "Place" => "TVL")
);
Use this
function in_multiarray($elem, $array,$field)
{
$top = sizeof($array) - 1;
$bottom = 0;
while($bottom <= $top)
{
if($array[$bottom]$array[$bottom][$field] == $elem)
return true;
else
if(is_array($array[$bottom]$array[$bottom][$field]))
if(in_multiarray($elem, ($array[$bottom]$array[$bottom][$field])))
return true;
$bottom++;
}
return false;
}
?>
example : echo in_multiarray("22", $array,"Age");