PHP Manualarray_diff_ukey(PHP 5 >= 5.1.0) array_diff_ukey — Computes the difference of arrays using a callback function on the keys for comparison Description
array array_diff_ukey
( array
$array1
, array $array2
[, array $ ...
], callable $key_compare_func
)
Compares the keys from Unlike array_diff_key() an user supplied callback function is used for the indices comparison, not internal function. Parameters
Return Values
Returns an array containing all the entries from
Examples
Example #1 array_diff_ukey() example
<?php The above example will output: array(2) { ["red"]=> int(2) ["purple"]=> int(4) } Notes
See Also
![]() |
PHP-Index
New Tutorial entries
|