array array_intersect_key ( array $array1 , array $array2 [, array $... ] );
array_intersect_key function returns an array containing all the entries of array1 which have keys that are present in all the arguments.
You get WET when you swim. Stay DRY when you code.
More coming soon…keep checking back.