I\'m trying to intersect an arbitrary number of PHP arrays, the count of which depends on a user provided parameter, each of which can have any number of elements.
F
I am posting my answer very very late, but just want to share a small piece of code that helps me ,in case somebody needs it for this question.
print_r(array_intersect(array_merge($array1,$array2,...),$intersectionArr);
I hope this helps
Thanks