标签:var pre nbsp unique span test color php多维数组 var_dump
<?php $arr1[0]= [‘id‘=>1,‘name‘=>‘test‘]; $arr1[1]=[‘id‘=>2,‘name‘=>‘test‘]; $arr3[0]= [‘id‘=>1,‘name‘=>‘test‘]; $arr3[1]=[‘id‘=>2,‘name‘=>‘test2‘]; $arr2 = [0=>[‘id‘=>1,‘name‘=>‘test‘], 1=>[‘id‘=>2,‘name‘=>‘test2‘] ]; $b = array_merge($arr1,$arr3);//合并数组 $b = array_unique($b, SORT_REGULAR); var_dump($b); ?>
标签:var pre nbsp unique span test color php多维数组 var_dump
原文地址:https://www.cnblogs.com/-lin/p/10184213.html