$ar1 = array ("color "= array ("favorite" = "red"), 5); $ar2 = array (10, "color "= array ("favorite" = "green", "blue")); $result = array_merge_recursive ($ar1, $ar2);
?php $ar1 = array( "couleur "= array("favorie" = "rouge"), 5); $ar2 = array(10, "couleur "= array("favorie" = "vert", "rouge")); $result = array_merge_recursive($ar1, $ar2); print_r($result);?