- var_dump: documentation ( source)
- array_merge_recursive: documentation ( source)
<?php
$a = array('person' => array(
'name' => 'franz',
'last_name' => 'de leon',
));
$b = array('person' => array(
'name' => 'cheryl',
));
var_dump(array_merge_recursive($a, $b));