详见:
<?php
$array1 = array();
$array2 = array(1 => "data");
$result = $array1 + $array2;
?>
Array
(
[1] => data
)
原文如下(大概的意思就是可以直接以加号(+)来实现数组追加,不会覆盖):
If you want to completely preserve the arrays and just want to append them to each other (not overwriting the previous keys), use the + operator.