title: Error: Fatal error: Interface 'PHPExcel_Reader_IReadFilter' not found in D:\xampp\htdocs\Tests\example1.php on line 10
body: <p>Here's my code I copied from the documentation of PHPExcel. I'm trying to read specific cell values. Any help will be appreciated.</p>
  
  <pre><code>&lt;?php
  
  $inputFileType = 'Excel2007';
  $inputFileName = 'cohort1.xlsx';
  $sheetname = 'Sheet1';
  
  
  /**  Define a Read Filter class implementing PHPExcel_Reader_IReadFilter  */ 
  class MyReadFilter implements PHPExcel_Reader_IReadFilter
  {
      public function readCell($column, $row, $worksheetName = 'Sheet1') {
          //  Read rows 1 to 7 and columns A to E only 
          if ($row &gt;= 1 &amp;&amp; $row &lt;= 7) {
              if (in_array($column,range('A','E'))) {
                  return true;
              } 
          }
          return false; 
      } 
  } 
  
  /**  Create an Instance of our Read Filter  **/ 
  $filterSubset = new MyReadFilter(); 
  
  /**  Create a new Reader of the type defined in $inputFileType  **/ 
  $objReader = PHPExcel_IOFactory::createReader($inputFileType); 
  /**  Tell the Reader that we want to use the Read Filter  **/ 
  $objReader-&gt;setReadFilter($filterSubset); 
  /**  Load only the rows and columns that match our filter to PHPExcel  **/ 
  $objPHPExcel = $objReader-&gt;load($inputFileName); 
  
  
  ?&gt;
  </code></pre>
  
  <p>I have an excel file that I want to read using PHP. It's a pretty big table that's why I decided to use excel instead of database tables. </p>
  
  <p>I would also like to know if there is any other better way of doing this. Thanks.</p>