This is the example from the documentation that I am talking about
Example 3. in_array() with an array as needle
<?php
$a = array(array('p', 'h'), array('p', 'r'), 'o');
if (in_array(array ('p', 'h'), $a))
echo "'ph' was found\n";
if (in_array(array ('f', 'i'), $a))
echo "'fi' was found\n";
if (in_array('o', $a))
echo "'o' was found\n";
?>
// This will output:
'ph' was found
'o' was found
Could you explain your code a little bit more detail, because I don't really understand what your code is doing
Thanks