how to load first n rows from a scv file with phpexcel? <p>I haven't seen an example on loading the first <code>n</code> rows from afile</p> <p>So far I have:</p> <pre><code>$objPHPExcel = PHPExcel_IOFactory::load($file_name); $sheetData = $objPHPExcel-&gt;getActiveSheet()-&gt;toArray(NULL, FALSE, TRUE, FALSE); </code></pre> <p>The reason I want to load only a few rows is that my file is large (10.000 entries) and im thinking that loading a few rows will be faster.</p> <p>Any ideas?</p>