阵列1
[0] => Array
(
[0] => Urban Dictionary - yolo
[1] => http://www.urbandictionary.com/define.php?term=yolo
[2] => 3
)
[1] => Array
(
[0] => YOLO Colorhouse - Low Odor, Zero VOC Interior Paint with Artist-Crafted Color Palette
[1] => http://www.yolocolorhouse.com/
[2] => 2
)
[2] => Array
(
[0] => Yolo County - Home
[1] => http://www.yolocounty.org/
[2] => 9
数组2
[0] => Array
(
[0] => Yolo Is Intel’s First Smartphone for Africa
[1] => http://mashable.com/2013/01/25/intel-yolo/
[2] => 65
[1] => Array
(
[0] => YOLO Colorhouse - Low Odor, Zero VOC Interior Paint with Artist-Crafted Color Palette
[1] => http://www.yolocolorhouse.com/
[2] => 6
)
[2] => Array
(
[0] => Yolo County - Home
[1] => http://www.yolocounty.org/
[2] => 43
我想以这样的方式合并上面的数组
(i)如果网址相同,请更换一个(或者只删除其中一个网址) (ii)当网址相同时,将分数添加到新网址。因此,如果我在一个阵列中有50个阵列,在另一个阵列中有50个阵列,其中10个阵列具有相同的URL,则合并后的阵列将总共有90个结果,其中10个具有增加的分数。合并的上述示例将有4个阵列,其中YOLO计数为主,得分为52。
有人可以建议如何解决这个问题吗?