I have an array
[
[0 => 20, 1 => 36, 3 => 42],
[0 => 21, 1 => 42, 2 => 30],
]
And I have a second array of
[24, 42, 26, 12]
I want to use array_intersect() to get the values that are the same from each array. What I am having trouble with is figuring out how to properly set up the code to do that. I would hope to have this
[
[42],
[42],
]