laravelMaatwebsite/Laravel-Excel读取项目的excel文件 1. [代码] [PHP]代码 $excel = storage_path('app/styles.xlsx');\Excel::load($excel, function($reader) { $reader-each(function($sheet) { // Loop through all rows $sheet-each(functi
1. [代码][PHP]代码
$excel = storage_path('app/styles.xlsx'); \Excel::load($excel, function($reader) { $reader->each(function($sheet) { // Loop through all rows $sheet->each(function($row) { $row = array_filter($row->toArray()); $name = array_shift($row); }); }); });