将三维数组中的同名的键拆分成三维数组的每个数组中包括原来不同的二维数组的键...

 $item_money_detail = json_decode(htmlspecialchars_decode($data['item_money_detail']), true);
            $list = array();
            foreach ($item_money_detail as $k => $v) {
                foreach ($v as $kk => $vv) {
                    $list[$kk][$k] = $vv;
                }
            }
            $data['item_money_detail'] = $list;

 

 

posted @ 2018-12-11 10:05  码农编程进阶笔记  阅读(25)  评论(0编辑  收藏  举报
返回顶部 有事您Q我