Read only specific sheet

前端 未结 4 1380
面向向阳花
面向向阳花 2021-01-01 17:26

I am trying to read just one sheet from an xls document and I have this:

 $objPHPExcel = $objReader->load(\'daily/\' . $fisierInbound);
 $objWorksheet = $         


        
4条回答
  •  伪装坚强ぢ
    2021-01-01 18:07

    You can do it easier than getting list of worksheet names:

    $objPHPExcel->setActiveSheetIndex(2);
    $worksheet = $objPHPExcel->getActiveSheet();
    

    Loads #2 (third) worksheet.

提交回复
热议问题