array_merge_recursive

It merges two or more arrays recursively

Example

<?php
echo “<pre>”;
$array1 = array(“PHP” => array(“WEB” => “1″), 7);
$array2 = array(17, “ASP” => array(“FAV” => “34″, “84″));
$array3 =($array1, $array2);
print_r($array3);
?>

Output

Array
(
[PHP] => Array
(
[WEB] => 1
)

[0] => 7
[1] => 17
[ASP] => Array
(
[FAV] => 34
[0] => 84
)