title: How to read multiple worksheets from a single .csv file?
body: <p>I want to read multiple worksheets in a single <code>.csv</code> file using PHP. I have done it for one worksheet: </p>
  
  <pre><code>$file_handle = fopen("widgets.csv", "r");
  
  while (!feof($file_handle) ) {
      $line_of_text = fgetcsv($file_handle, 1024);
      print $line_of_text[0] . $line_of_text[1]. $line_of_text[2] . "&lt;BR&gt;";
  }
  
  fclose($file_handle);
  </code></pre>
  
  <p>But how can I read multiple worksheets from the same <code>.csv</code> file?</p>