如何在大数组内拆分数组以适应交叉函数?

I have the following array that contains other arrays:

$bigArray = [$array_one, $array_two, $array_three,.... ];

I want to array_intersect the inner arrays like so:

$intersect = array_intersect($array_one, $array_two, $array_three,....);

How do I handle it?

Like this:

$intersect = array_intersect(...$bigArray);

The ... operator, introduced in PHP 5.6, allows you to use an array to pass multiple function arguments.

It's also possible to do this with call_user_func_array, but argument unpacking offers some advantages over that approach.

call_user_func_array('array_intersect', $bigArray);

this works for me