title: Simplest way to read a csv file using php, and then select one specific value
body: <p>Thank you in advance for your time/help.  I'm a newbie learning php, so please keep that in mind.</p>
  
  <p>1st Question
  I need a php script that reads a csv file.</p>
  
  <p>2nd Question
  How do I echo a specific cell (row and row/column) in that file</p>
  
  <p>I found this script on a similar reply, the script reads the whole file perfectly, but I only want to select a specific cell/value on that csv file. So how do I echo a specific row or a row and column.</p>
  
  <pre><code>$row = 1;
  if (($handle = fopen("1.csv", "r")) !== FALSE) {
      while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
          $num = count($data);
          echo "&lt;p&gt; $num fields in line $row: &lt;br /&gt;&lt;/p&gt;\n";
          $row++;
          for ($c=0; $c &lt; $num; $c++) {
              echo $data[$c] . "&lt;br /&gt;\n";
          }
      }
      fclose($handle);
  }
  </code></pre>