导出的Excle,如何设置标题

浏览:2686 发布日期:2017/07/24 分类:求助交流
/**
 * @pr导出学生银行账号  
 */    
    public function stublank()
    {
        $getExcel=I("getExcel");
        if (!empty($getExcel)) {
            $map['身份证件号']=array("eq",'');
            $data=D("Stu")->field(true)->limit(10)->select();
            $topArr=array_merge(array("姓名","性别"));//使用数组合并方式array_merge()方法
            $thistime=day_format(NOW_TIME);
            outExcel($data,"无银行卡信息学生资料".$thistime);
        }else{
            $this->display();
        }
    }
最佳答案
评论( 相关
后面还有条评论,点击查看>>