title: Implement first array key in all array while read CSV in php
body: <pre><code>if (move_uploaded_file($uploadData['tmp_name'], $uploadPath)) {
              $files = fopen($uploadPath, 'r');
              while (($line = fgetcsv($files, 0, ",")) !== FALSE) {
              //$line = array_combine($line,$line); try but not working
              pr($line);
              }
  }
  </code></pre>
  
  <p>I am getting output like that -</p>
  
  <pre><code>Array
  (
      [Company Name] =&gt; Company Name
      [Primary First] =&gt; Primary First
      [Primary Last] =&gt; Primary Last
  )
  Array
  (
      [0] =&gt; Naturfrisk Energy Bar
      [1] =&gt; Aksel
      [2] =&gt; Romer
  )
  Array
  (
      [0] =&gt; The Code Devloper
      [1] =&gt; vikas
      [2] =&gt; Tyagi
  )
  </code></pre>
  
  <p>But i need Output like that-</p>
  
  <pre><code>Array
  (
      [Company Name] =&gt; Company Name
      [Primary First] =&gt; Primary First
      [Primary Last] =&gt; Primary Last
  )
  Array
  (
      [Company Name] =&gt; Naturfrisk Energy Bar
      [Primary First] =&gt; Aksel
      [Primary Last] =&gt; Romer
  )
  Array
  (
      [Company Name] =&gt; The Code Devloper
      [Primary First] =&gt; vikas
      [Primary Last] =&gt; Tyagi
  )
  </code></pre>