title: PHP read in specific csv file column as an array
body: <p>I am new to PHP and would like to be able to read in a csv file which has two columns, one is the number (kind of like a ID) then the other holds a integer value. I have looked up the fgetcsv function but I have not been able to find a way to read a specific column from the csv file.</p>
  
  <p>I would like to get all the values from the second column only, without the heading.</p>
  
  <p>Any way of doing this?</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>$file = fopen('data.csv', 'r');
  $line = fgetcsv($file);
  </code></pre>
  
  <p>And this is some sample data from the csv file:</p>
  
  <pre><code>ID,Value
  1,243.00
  2,243.00
  3,243.00
  4,243.00
  5,123.11
  6,243.00
  7,180.00
  8,55.00
  9,243.00
  </code></pre>
  
  <p>Any help would be appreciated.</p>
  
  <p>Thanks.</p>