I am creating a faceted search, and I\'m am trying to use array_intersect to compare the arrays and find the inputs that match.
array_intersect
The problem is that I wi
First of all, turn those arrays into an array of arrays. Then you can use array_reduce combined with array_intersect to reduce a variable amount of arrays down to one.