正文  软件开发 > PHP编程技术 >

php两个多维数组组合遍历,php多维数组

php两个多维数组组合遍历,php多维数组 $res = $this->LoanRecord->searchloan($conditions,$columns,$page,$this->nu...

php两个多维数组组合遍历,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时单独查询遍历

http://www.bkjia.com/PHPjc/1231448.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/1231448.htmlTechArticlephp两个多维数组组合遍历,php多维数组 $res = $this-LoanRecord-searchloan($conditions,$columns,$page,$this-num,$user_id); foreach ($res[1] as $key = $value) { if(!empt...