array_intersect php funciton

preview_player
Показать описание
array_intersect — Computes the intersection of arrays
Description
array_intersect(array $array, array ...$arrays): array

array_intersect() returns an array containing all the values of array that are present in all the arguments. Note that keys are preserved.
Parameters

array

The array with master values to check.
arrays

Arrays to compare values against.
Рекомендации по теме