public static function getArrayElementsByKeys(array $aSubject, array $aKeys) { return array_intersect_key($aSubject, array_flip($aKeys)); }