title: Just get one row from PHPExcel
body: <p>I tried to find a way to just get a row using PHPExcel. After numerous searches on the internet, I only found a way to iterate over them, with an optional start row. This lead to the following solution:</p>
  
  <pre><code>foreach ($this-&gt;objPHPExcel-&gt;getActiveSheet()-&gt;getRowIterator($rownumber) as $row) {
      $cellIterator = $row-&gt;getCellIterator();
      $cellIterator-&gt;setIterateOnlyExistingCells(false);
  
      foreach ($cellIterator as $cell) {
          echo $cell-&gt;getValue();
      }
  
      break;
  }
  </code></pre>
  
  <p>but this feels a little ugly. Is there another way to do it?</p>