I have a multidimensional array as follows,
$array1 = Array(
'id' => Array(1 => 19, 2 => 47),
'name' => Array(1 => 'Alex Paul', 21 => 'sdfs'),
'category' => Array(1 => 1, 21 => 2)
);
Also I have an array element
$res['id'][1]= 47;
I want to check $res['id'][1] is present in $array1 or not.
How to solve this issue