array_intersect_uassoc

Supported Versions: PHP 5, PHP 7, PHP 8
Computes the intersection of arrays with additional index check, compares indexes by a callback function
<?php array_intersect_uassoc(array $array, array ...$arrays, callable $key_compare_func): array
<?php     public function intersectAssocUsing($items, callable $callback)

    {

        return new static(array_intersect_uassoc($this->items, $this->getArrayableItems($items), $callback));

    }