php多维数组内部合并

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”的值相加后的值作为新的值.键不变

  • 数据库课程表的表结构怎么设计
  • 给公众号再开发个<后台管理>比起<微信公众平台>优势在哪?
  • mysql如何按指定算法排序
  • 这个json文件用json_decode 解析不出来如何解决 返回Null 错误值是4
  • 安卓微信中网页跳转慢
  • laravel 日志保存目录问题;
  • 谁知道一些基于lumen的开源项目
  • Discuz的业务问题
  • php限制用户调用app接口的刷新频率,1秒不能达到20
  • 循环给array_merge里加函数的问题
  • 关于php的socket_read函数的问题