php数组中某一个重复的值合并成一个新数组?如array([0]=>array("a"=>1,"b"=>2) 20
php数组中某一个重复的值合并成一个新数组?如array([0]=>array("a"=>1,"b"=>2),[1]=>array("a"=>1,"b"=>3),[2]=...
php数组中某一个重复的值合并成一个新数组?如array([0]=>array("a"=>1,"b"=>2),[1]=>array("a"=>1,"b"=>3),[2]=>array("a"=>2,"b"=>4),)
处理后
array(
[0]=>array(
[0]=>array("a"=>1,"b"=>2),
[1]=>array("a"=>1,"b"=>3)
),
[2]=>array("a"=>2,"b"=>4)
) 展开
处理后
array(
[0]=>array(
[0]=>array("a"=>1,"b"=>2),
[1]=>array("a"=>1,"b"=>3)
),
[2]=>array("a"=>2,"b"=>4)
) 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询