php compare two multidimensional arrays for matches code example
Example: multiple value match in array php
if (in_array('a', $array_under_test) || in_array('b', $array_under_test)) {
// Success!
}
if (in_array('a', $array_under_test) || in_array('b', $array_under_test)) {
// Success!
}