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

 $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;

原文地址:https://www.cnblogs.com/lxwphp/p/15453690.html