recusrion is your friend.
$val)
{
if (is_array($val))
{
if (in_multi_array($needle, $val))
return 1;
} else
if ($val == $needle)
return 1;
}
}
if (in_multi_array('d', $test))
echo "TRUE \n";
else
echo "FALSE \n";
?>
--
Chris Lee
Mediawaveonline.com
How can I check if a value is in a multidimensional array?
like I have
";
$produtos_sem_tracking[$i]['cod']=$idt[0];
$produtos_sem_tracking[$i]['idt']=$idt[1];
$produtos_sem_tracking[$i]['gen']=$idt[2];
}
?>
how can I check for an existing
2 matches
Mail list logo