php
require 'PHPExcel.php';
$objPHPExcel = new PHPExcel();
$objPHPExcel->setActiveSheetIndex(0)
->setCellValue('A1', '姓名')
->setCellValue('B1', '年龄')
->setCellValue('A2', '张三')
->setCellValue('B2', 25);
$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
$objWriter->save('example.xlsx');
顶一下
(0)
0%
踩一下
(0)
0%
- 相关评论
- 我要评论
-