array_replace_recursive
pestphp/pest
Supported Versions: PHP 5 >= 5.3.0, PHP 7, PHP 8
Replaces elements from passed arrays into the first array recursively
<?php array_replace_recursive
(array
$array
, array ...
$replacements
): array