The What
Syntax
array array_intersect ( array $array1 , array $array2 [, array $... ] );
Description
The array_intersect
function returns an array containing all the values of array1 that are present in all the arguments. Note that keys are preserved.
You get WET when you swim. Stay DRY when you code.
More coming soon…keep checking back.