title: php str_getcsv array issue
body: <p>I am uploading a csv file and then parsing it using str_getcsv. All works great except that I need a way to cycle through them. Ideally, it'd be great to have the array come back and look like this:</p>
  
  <pre><code>Array (      
      [1] =&gt; Array
         (
              [0] =&gt; 1 // first id in csv
              [1] =&gt; name
              [2] =&gt; address
              [3] =&gt; town
              [4] =&gt; state
              [5] =&gt; zip
              [6] =&gt; phone
              [7] =&gt; website
              [8] =&gt; other
              [9] =&gt; other
          )
      [22] =&gt; Array
         (
              [10] =&gt; name
              [11] =&gt; address
              [12] =&gt; town
              [13] =&gt; state
              [14] =&gt; zip
              [15] =&gt; phone
              [16] =&gt; website
              [17] =&gt; other
              [18] =&gt; other
          )
      [24] =&gt; Array
         (
              [19] =&gt; name
              [20] =&gt; address
              [21] =&gt; town
              [22] =&gt; state
              [23] =&gt; zip
              [24] =&gt; phone
              [25] =&gt; website
              [26] =&gt; other
              [27] =&gt; other
          )
  )
  </code></pre>
  
  <p>However the data comes back like the following: </p>
  
  <pre><code>Array
  (
      [0] =&gt; 1 // first id in csv
      [1] =&gt; name
      [2] =&gt; address
      [3] =&gt; town
      [4] =&gt; state
      [5] =&gt; zip
      [6] =&gt; phone
      [7] =&gt; website
      [8] =&gt; other
      [9] =&gt; other
  22 // id field
      [10] =&gt; name
      [11] =&gt; address
      [12] =&gt; town
      [13] =&gt; state
      [14] =&gt; zip
      [15] =&gt; phone
      [16] =&gt; website
      [17] =&gt; other
      [18] =&gt; other
  24// id field
      [19] =&gt; name
      [20] =&gt; address
      [21] =&gt; town
      [22] =&gt; state
      [23] =&gt; zip
      [24] =&gt; phone
      [25] =&gt; website
      [26] =&gt; other
      [27] =&gt; other
  </code></pre>
  
  <p>Any suggestions on how to fix this to look like the array at the top?
  right now I'm doing: </p>
  
  <pre><code>$csvfile = file_get_contents($targetFile);
  $csv = str_getcsv($csvfile);
  </code></pre>