Code
Result

PHP code example: array_replace_recursive

Replaces elements from passed arrays into the first array recursively. See documentation.

You can try this function yourself. Just edit the code and on "Run" to see the result.