_rest_array_intersect_key_recursive
_rest_array_intersect_key_recursive ( $array1, $array2 )
Parameters:- (array) array1 The array with master keys to check.
- (array) array2 An array to compare keys against.
Returns:- (array) An associative array containing all the entries of array1 which have keys that are present in all arguments.
Defined at: - Introduced in WordPress: 5.3.0
- Deprecated in WordPress: —
Description
Recursively computes the intersection of arrays using keys for comparison.