重组数组,实现类似淘宝一样的合并订单

浏览:731 发布日期:2016/03/29 分类:求助交流 关键字: 重组数组 合并订单
array (
  '0' =>
    array (
      'id' => string '22',
      'title' => string '商品名称',
      'test' => string '123',
      )
  '1' =>
    array (
      'id' => string '23',
      'title' => string '商品名称',
      'test' => string '125',
      )
  '2' =>
    array (
      'id' => string '30',
      'title' => string '商品名称',
      'test' => string '123',
      )
)
类似上面的数组,需要把test字段相同的组合在一起,并在前台输出,类似电商网站的订单合并,在线等
最佳答案
评论( 相关
后面还有条评论,点击查看>>