array(3) {
[0] => array(9) {
[0] => string(1) "1"
[1] => string(3) "175"
[2] => string(1) "2"
[3] => string(2) "22"
[4] => string(2) "22"
[5] => string(2) "-1"
[6] => string(1) "0"
[7] => string(11) "小份+0元"
[8] => int(44)
}
[1] => array(9) {
[0] => string(1) "1"
[1] => string(3) "175"
[2] => string(1) "3"
[3] => string(2) "22"
[4] => string(2) "22"
[5] => string(2) "-1"
[6] => string(1) "0"
[7] => string(11) "小份+0元"
[8] => int(66)
}
[3] => array(9) {
[0] => string(1) "1"
[1] => string(3) "175"
[2] => string(1) "2"
[3] => string(2) "22"
[4] => string(2) "22"
[5] => string(2) "-1"
[6] => string(1) "0"
[7] => string(11) "小份+0元"
[8] => int(44)
}
}
请问如何把一样的一维数组合并
并且如果两者一样 把 [2] => string(1) "2"的值相加后的值作为新的值.键不变
谢谢
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.