phpexcel 导入超过26列时的解决方案$objPHPExcel->getActiveSheet()->getCell
$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;
按照以上方式改动后,代码就可以正常运行了