时间:2021-07-01 10:21:17 帮助过:62人阅读
实例如下:
$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多维数组排序详解
JS遍历不规则多维数组方法总结
需要遍历不规则多维数组时应怎么写JS
以上就是php两个多维数组组合案例的详细内容,更多请关注Gxl网其它相关文章!