时间:2021-07-01 10:21:17 帮助过:10人阅读
实例如下:
$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时单独查询遍历
以上就是php实现两个多维数组组合遍历的实例的详细内容,更多请关注Gxl网其它相关文章!