Source Code:
(back to article)
<?php $array1 = array("color" => "red", 2, 4); $array2 = array("a", "b", "color" => "green", "shape" => "rectangle", 4); $result = array_merge($array1, $array2); print_r($result); ?>
Result:
Report an issue