title: Show data assigned to variable from a CSV
body: <p>I'm loading a CSV file and looping over each line. I want to assign variables to each column (shown in the list line), then in the first instance, show each lines <code>$project</code> data. So essentially that will give me each project code per line.</p>
  
  <p>I'll be using the other variables but just want this one working for now.</p>
  
  <p>There should be 1000 projects but it's only showing one, where am I going wrong?</p>
  
  <pre><code>&lt;?php
   $row = 1;
   if (($handle = fopen("users.csv", "r")) !== FALSE) {
       while (($data = fgetcsv($handle, ",")) !== FALSE) {
           $num = count($data);
  
                   $row++;
  
                       list($project, $rod, $rom, $asm, $contract, $site, $town, $postcode, $country) = $data;
                       echo $contract;
  
       }
       fclose($handle);
   }
  ?&gt;
  </code></pre>