title: Read XLS in PHP using PhpSpreadsheet
body: <p>I have a requirements to read XLS files (not xlsx) using PhpSpreadsheet and I having trouble. I tried this (as the documentation say but...)</p>
  
  <pre><code>require 'vendor/autoload.php';
  use PhpOffice\PhpSpreadsheet\Spreadsheet;
  
  $spreadsheet = \PhpOffice\PhpSpreadsheet\IOFactory::load("lista.xls");
  $worksheet = $spreadsheet-&gt;getActiveSheet();
  
  echo '&lt;table&gt;' . PHP_EOL;
  foreach ($worksheet-&gt;getRowIterator() as $row) {
      echo '&lt;tr&gt;' . PHP_EOL;
      $cellIterator = $row-&gt;getCellIterator();
      $cellIterator-&gt;setIterateOnlyExistingCells(FALSE); // This loops through all cells,
                                                         //    even if a cell value is not set.
                                                         // By default, only cells that have a value
                                                         //    set will be iterated.
      foreach ($cellIterator as $cell) {
          echo '&lt;td&gt;' .
               $cell-&gt;getValue() .
               '&lt;/td&gt;' . PHP_EOL;
      }
      echo '&lt;/tr&gt;' . PHP_EOL;
  }
  echo '&lt;/table&gt;' . PHP_EOL;
  
  echo "&lt;br&gt;fin";
  </code></pre>
  
  <p>but didn't work (it worked with a xlsx file, but no with a xls file!)</p>
  
  <p>Then I tried to open file differently:</p>
  
  <pre><code>$reader = new \PhpOffice\PhpSpreadsheet\Reader\Xls();
  $sheet = $reader-&gt;load("lista.xls");
  </code></pre>
  
  <p>but also doesn't work...</p>
  
  <p>I really need to solve this... please help!
  PS: I've tried BasicExcel &amp; PHPExcel but also didn't seem to work</p>