| Previous | Home | Next |
<html>
<head>
<title>Merge two or more arrays recursively</title>
</head>
<body>
<?php
$a = array("A" => 10, "C" => 20);
$b = array("B" => 30, "D" => 40);
$c = array_merge_recursive($a, $b);
print_r($c);
?>
</body>
</html>
Output:

| Previous | Home | Next |