php读取excel的时候出现一个问题:PHPExcel_Reader_Excel2007::getArrayItem(): Node no longer exists
修复方式:在载入文件前设置只读:
$objReader->setReadDataOnly(true);
完整示例:
$objReader = \PHPExcel_IOFactory::createReader('Excel2007'); $objReader->setReadDataOnly(true);//设置只读 $objPHPExcel = $objReader->load($file);