Marking the answer should be enough for your problem. If you want to find an intersection of more than 2 arrays, use this:
$arrays = array( array(1, 2, 3), array(2, 4, 6), array(2, 8, 16) ); $intersection = call_user_func_array('array_intersect', $arrays);
Swader
source share