$data = $cell->getValue(); 没有getValue 方法
foreach($objExcelFile ->getWorksheetIterator() as $sheet) { //循环每行 foreach($sheet ->getRowIterator() as $row) { //循环每列 foreach($row ->getCellIterator() as $cell) {//获取单元格数据 $data = $cell->getValue(); } } }
foreach($objExcelFile ->getWorksheetIterator() as $sheet) { //循环每行 foreach($sheet ->getRowIterator() as $row) { //循环每列 foreach($row ->getCellIterator() as $cell) {//获取单元格数据 $data = $cell->getValue(); } } }
2019-06-29
举报