array_diff_ukey
laravel/framework
Supported Versions: PHP 5 >= 5.1.0, PHP 7, PHP 8
Computes the difference of arrays using a callback function on the keys for comparison
array_diff_ukey
(array
$array
, array ...
$arrays
, callable
$key_compare_func
): array
public function
diffKeysUsing
(
$items
, callable
$callback
)
{
return new static(
array_diff_ukey
(
$this
->
items
,
$this
->
getArrayableItems
(
$items
),
$callback
));
}
src/Illuminate/Collections/Collection.php