title: Getting all values of $row in csv file
body: <p>I am trying this simple CSV file:</p>
  
  <pre><code>A;23
  B;24
  C;25
  D;26
  E;123
  F;243
  G;180
  H;55
  I;243
  </code></pre>
  
  <p>The meaning is to get an array with all values of the first column. The code looks like this:</p>
  
  <pre><code>&lt;?php
  
      function importData($file, $store_id) {
  
          $handle = fopen($file, "r");
  
          while ($row = fgetcsv($handle, 0, ";")) {
          $productIds = array($row[1]);
          var_dump($productIds);
          exit;
  
          }
          fclose($handle);
      }
  
      importData("/home/test.csv", 3);
  
  ?&gt;
  </code></pre>
  
  <p>When I dump the information of <code>$row[0]</code> I get the following:</p>
  
  <pre><code>array(1) {
    [0]=&gt;
    string(1) "A"
  }
  </code></pre>
  
  <p>The meaning is to get all values from A to I, not only the first one. What would be necessary to apply to the code?</p>
  
  <p>Thanks for your collaborations</p>