数组相加合并
2024-11-23 18:21:56
$a=array('uid'=>1,'zhang'=>2,'li'=>3); $b=array('uid'=>1,'wang'=>12,'liu'=>13); $c =$a+$b; var_dump($a+$b);
array(5) { ["uid"]=> int(1) ["zhang"]=> int(2) ["li"]=> int(3) ["wang"]=> int(12) ["liu"]=> int(13) }