学生信息模板上传
This commit is contained in:
1 parent
fb64ff2556
commit
dbc0dc348f
5 files changed
+12
-13
No files matched your search
@@ -10,11 +10,9 @@ use PhpOffice\PhpSpreadsheet\IOFactory;
|
||||
|
||||
class Myexcel
|
||||
{
|
||||
// 读取电子表格
|
||||
public function readExcel($filename = '/public/upload/Book1.xls')
|
||||
{
|
||||
/**读取数据**/
|
||||
public function readXls($filename){
|
||||
$path = $filename;
|
||||
dump($path);
|
||||
setlocale(LC_ALL, 'zh_CN'); //csv中文乱码
|
||||
$inputFileType = IOFactory::identify($path);
|
||||
$excelReader = IOFactory::createReader($inputFileType);
|
||||
@@ -29,6 +27,7 @@ class Myexcel
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 生成电子表格
|
||||
public function outExcel()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user