title: Looping through a csv with fgetcsv
body: <p>I have a csv file with 3 columns: <strong>email address</strong>, <strong>first name</strong> and <strong>last name</strong>. I have got the stage where I can print out the array using the following code:</p>
  
  <pre><code>&lt;?php
  $file = fopen("testEmails.csv","r");
  
  while(! feof($file))
  {
  print_r(fgetcsv($file));
  }
  
  fclose($file);
  ?&gt;
  </code></pre>
  
  <p>This prints the array, so every field in a row. What I want it to print is purely the values in the first column of the row. How would this be done, documentation on fgetcsv seems very sketchy to me (a relative beginner).</p>
  
  <p>Thanks.</p>