也许有人可以帮我找到像这样的多级数组的数组交集:
[attributes] => Array
(
[Color] => Array
(
[0] => Cool White
[1] => Warm White
)
[LED Amount] => Array
(
[0] => 30 LEDs
)
)
[FILTER] => Array
(
[Color] => Array
(
[0] => Warm White
)
)
我尝试过以下代码,但问题是多维数组。
$intersection = array_intersect($arry['FILTER'], $arry['attributes']);
感谢您的帮助。