<?php
//读取Xlsx
$reader = new \PhpOffice\PhpSpreadsheet\Reader\Xlsx();
//读取Xls
$reader = new \PhpOffice\PhpSpreadsheet\Reader\Xls();
//读取Csv
$reader = new \PhpOffice\PhpSpreadsheet\Reader\Csv();
//载入文件
$spreadsheet = $reader->load("file name");
//输出为数组
$sheetData = $spreadsheet->getActiveSheet()->toArray();
print_r($sheetData);
?>

EB9AEB1E-9771-8ED9-D90F-264B572C8E2B.jpg

CDA70B1A-B3D6-59CA-2EE3-625BE8E61735.jpg