$highestColumn = $sheet->getHighestColumn(); // 取得总列数++$highestColumn;for ($row = 5; $row <= $highestRow; $row++) { ???$rowData = array(); ???for ($column = ‘A‘; $column != $highestColumn; $column++) { ???????$columnData = $sheet->getCell($column . $row)->getValue(); ???} ???????}
两处改动:1、++$highestColumn;2、$column != $highestColumn;
phpexcel 导入超过26列时的解决方案
phpexcel 导入超过26列时的解决方案
原文地址:https://www.cnblogs.com/weiyiyong/p/9599317.html