Home >Backend Development >PHP Tutorial > 求教怎么合并数组
求教如何合并数组
<br /> //比如下面两个数组<br /> $a1=array(2=>array(1,2),3=>array(4));<br /> $a2=array(2=>array(5),5=>array(4));<br /> /**<br /> *我想$a1跟$a2合并的结果为 array(2=>array(1,2,5),3=>array(4),5=>array(4));<br /> **/<br />