在php中合并两个数组

时间:2013-10-04 13:54:40

标签: php

我有两个数组

$array1= array([6] = 6 [9] = 9 [60] = 60 );

$array2 = array([01] = 01 [03] = 03 [02] = 0);

我想要这个结果:

$array_new = array([6] = 6 [9] = 9 [60] = 60 [01] = 01 [03] = 03 [02] = 0);

请帮忙

由于

1 个答案:

答案 0 :(得分:1)

使用array_merge()功能:

$array_new = array_merge($array1, $array2)