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
Use the splat operator (...) as in: array_intersect(...$arrayOfArrays) or interchangeably call_user_func_array.
...
array_intersect(...$arrayOfArrays)
call_user_func_array
It's in the code in this tutorial: https://www.youtube.com/watch?v=AMlvtgT3t4E