You could always serialize your multi-dimensional array and do a strpos
:
$arr = array(array("Mac", "NT"), array("Irix", "Linux"));
$in_arr = (bool)strpos(serialize($arr),'s:4:"Irix";');
if($in_arr){
echo "Got Irix!";
}
Various docs for things I used:
- strpos()
- serialize()
- Type Juggling or (bool)