Array
(
[0] => Array
(
[linkId] => 1
[clicksDate] => 1340856000
[clicksCount] => 1
)
[1] => Array
(
[linkId] => 1
[clicksDate] => 1340942400
[clicksCount] => 2
)
[2] => Array
(
[linkId] => 1
[clicksDate] => 1340942400
[clicksCount] => 1
)
[3] => Array
(
[linkId] => 2
[clicksDate] => 1340856000
[clicksCount] => 2
)
[4] => Array
(
[linkId] => 2
[clicksDate] => 1340942400
[clicksCount] => 3
)
[5] => Array
(
[linkId] => 2
[clicksDate] => 1340942400
[clicksCount] => 1
)
[6] => Array
(
[linkId] => 3
[clicksDate] => 1340856000
[clicksCount] => 0
)
}
输出 :
Array(
[0] => Array(
[clicksDate] => 1340856000,
[clicksCount] => 3
)
[1] => Array(
[clicksDate] => 1340942400,
[clicksCount] => 7
)
)
第一个数组有两个相似的日期,基于日期重复,我需要对点击次数求和。有人能帮我找到简单的解决方案吗?