array_intersect_key
laravel-shift/factory-generator
Supported Versions: PHP 5 >= 5.1.0, PHP 7, PHP 8
Computes the intersection of arrays using keys for comparison
<?php array_intersect_key
(array
$array
, array ...
$arrays
): array