yangzailu

导航

php两个多维数组组合遍历

    $res = $this->LoanRecord->searchloan($conditions,$columns,$page,$this->num,$user_id);
    foreach ($res[1] as $key => $value) {
        if(!empty($value['b']['id'])){
            $result_day = $this->LoanRecord ->getLastDay($value['b']['id']);
            $res[1][$key]['m'] = $result_day['m'];
        }
    }

导出表格单独查询,在写入excel时单独查询遍历

 

posted on 2017-10-30 18:15  飞离地平线  阅读(1880)  评论(0编辑  收藏  举报