3

I am using PHPExcel for import data from excel file. but I find some problems where the data was dynamically repeated per sheets and I wanted to take the last sheet to process. Is there any idea or method to get the highest sheet index ?

4

1 回答 1

9

获取总张数:

$sheetCount = $excelObj->getSheetCount();

最后一张纸索引将是:

$lastSheet = $sheetCount - 1;
于 2016-07-14T13:22:31.447 回答