如下,想实现二维数组内部相加,其中第二维中每个相对应的键名都是相同的,请问如何实现
Array
(
[0] => Array
(
[293] => 0
[257] => 0
[258] => 1
[259] => 0
[260] => 0
[261] => 0
[262] => 0
[263] => 0
[264] => 0
[265] => 0
[28] => 0
[31] => 0
[57] => 0
[1578] => 0
[1587] => 0
[1599] => 0
[1614] => 0
[1639] => 0
[1648] => 0
[1649] => 0
[2004] => 0
)
[1] => Array
(
[293] => 1
[257] => 0
[258] => 1
[259] => 0
[260] => 0
[261] => 0
[262] => 0
[263] => 0
[264] => 0
[265] => 0
[34] => 0
[44] => 0
[64] => 0
[1565] => 0
[1572] => 0
[1589] => 0
[1590] => 0
[1595] => 0
[1611] => 0
[1613] => 0
[2004] => 0
)
[2] => Array
(
[293] => 0
[257] => 0
[258] => 0
[259] => 0
[260] => 0
[261] => 0
[262] => 0
[263] => 0
[264] => 0
[265] => 0
[27] => 0
[1583] => 0
[1599] => 0
[1602] => 0
[1607] => 0
[1608] => 0
[1609] => 0
[1635] => 0
[1637] => 0
[1649] => 0
[2004] => 0
)
[3] => Array
(
[293] => 0
[257] => 0
[258] => 0
[259] => 0
[260] => 0
[261] => 0
[262] => 0
[263] => 0
[264] => 0
[265] => 0
[36] => 0
[52] => 0
[60] => 0
[1576] => 0
[1582] => 0
[1586] => 0
[1596] => 0
[1611] => 0
[1620] => 0
[1632] => 0
[2004] => 0
)
[4] => Array
(
[293] => 0
[257] => 0
[258] => 0
[259] => 0
[260] => 0
[261] => 0
[262] => 0
[263] => 0
[264] => 0
[265] => 0
[31] => 0
[41] => 0
[53] => 0
[266] => 0
[270] => 0
[1586] => 0
[1590] => 0
[1609] => 0
[1624] => 0
[1649] => 0
[2004] => 0
)
[5] => Array
(
[293] => 0
[257] => 0
[258] => 1
[259] => 0
[260] => 0
[261] => 0
[262] => 0
[263] => 0
[264] => 0
[265] => 0
[38] => 0
[42] => 0
[64] => 0
[267] => 0
[1574] => 0
[1576] => 0
[1588] => 0
[1597] => 0
[1598] => 0
[1624] => 0
[2004] => 0
)
[6] => Array
(
[293] => 1
[257] => 0
[258] => 0
[259] => 0
[260] => 0
[261] => 0
[262] => 0
[263] => 0
[264] => 0
[265] => 0
[28] => 0
[45] => 0
[1585] => 0
[1597] => 0
[1603] => 0
[1617] => 0
[1618] => 0
[1628] => 0
[1644] => 0
[1649] => 0
[2004] => 0
)
[7] => Array
(
[293] => 0
[257] => 0
[258] => 0
[259] => 0
[260] => 0
[261] => 0
[262] => 0
[263] => 0
[264] => 0
[265] => 0
[39] => 0
[266] => 0
[1564] => 0
[1601] => 0
[1607] => 0
[1620] => 0
[1621] => 0
[1622] => 0
[1634] => 0
[1640] => 0
[2004] => 0
)
)