array("cat", "dog"), "wilds"=>array("lion", "fox")); $array2 = array("fruits"=>array("apple", "banana"), "lemon", "corn"); // Merging the two array $result = array_merge_recursive($array1, $array2); print_r($result); ?>