I have a multidimensional array containing three arrays and an array of id's within each. Here is what it looks like:
$data = array(
'first' => array(1,2,3,4,5,6),
'second' => array(1,2,3),
'third' => array(1,2,5,6)
);
What I'd like to do is run an intersection on all three and end up with the result of an array, in this example, would be array(1,2)
How do I accomplish this?