Core Function
View Source on Trac ↗ _rest_array_intersect_key_recursive()
_rest_array_intersect_key_recursive( mixed $array1, mixed $array2 ) Recursively computes the intersection of arrays using keys for comparison.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $array1 array | The array with master keys to check. Required |
| $array2 array | An array to compare keys against. Required |
Return Value
(array)
array An associative array containing all the entries of array1 which have keys
that are present in all arguments.
Function Information
Since Version
5.3.0
Source File
wp-includes/rest-api.php
Advertisement