//创建文件夹或清除文件夹下文件 $dir="var/templet"; if (!file_exists($dir)) { mkdir ($dir);//创建文件夹 }else { $dh=opendir($dir); while ($file=readdir($dh)) { if($file!="." && $file!="..") { $fullpath=$dir."/".$file; unlink($fullpath); } } closedir($dh); } //导出excel//导出单个品类码excel $oe = new PHPExcel(); $i = 0; $x = 1; $oe->setActiveSheetIndex(0); $oe->getActiveSheet()->setTitle('品类码'.$category_code); $oe->getActiveSheet()->setCellValue('A1', '品类码:'.$category_code); $oe->getActiveSheet()->setCellValue('A2',$manage_full_name); // $oe->getActiveSheet()->setCellValue('B1', $manage_code); $oe->getActiveSheet()->getColumnDi
php 导出excel压缩包
最新推荐文章于 2024-06-03 15:33:05 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)