|
array_diff_keyComputes the difference of arrays using keys for comparison Description
array array_diff_key(array
$array, array ...$arrays)
Compares the keys from Parameters
Return Values
Returns an array containing all the entries from
Changelog
Examples
Example #1 array_diff_key example
The two keys from the The above example will output:
array(3) {
["blue"]=>
int(1)
["red"]=>
int(2)
["purple"]=>
int(4)
}
The above example will output:
array(2) {
["red"]=>
int(2)
["purple"]=>
int(4)
}
Notes
See Also
|