PHPExcel Delete First Row

macyhsilverah

New Member
I am using PHPExcel to read an .xlsx that has headers in the first row. How can I delete/ignore the first row when reading the excel sheet without having to first save it?\[code\]$phpExcel = new PHPExcel;// Read your Excel workbooktry { $inputFileType = PHPExcel_IOFactory::identify($inputFileName); $objReader = PHPExcel_IOFactory::createReader($inputFileType); $objPHPExcel = $objReader->load($inputFileName);} catch(Exception $e) { die('Error loading file "'.pathinfo($inputFileName,PATHINFO_BASENAME).'": '.$e->getMessage());}// Get worksheet dimensions$sheet = $objPHPExcel->getSheet(0);\[/code\]
 
Back
Top