Analysis of the actual case using array_keys with array_intersect_ukey function
1. Function introduction array_intersect_ukey array_intersect_ukey(array $array1, array $array2, callable $key_compare_func): array This function returns an array that contains all the keys in $array1 that also exist in $array2. The way of comparing the keys is determined by key_compare_func.
array_intersect_ukey