title: How to set keys in a multidimentional array in php
body: <p>I have doubt in php i want to set an associative array for which i have the keys ,as well as values.
   i have an array $headers and a mutidimentional array $data as follows:</p>
  
  <pre><code>$headers=(
      [0] =&gt; Testcase Name
      [1] =&gt; Cell Name
      [2] =&gt; Customer
      [3] =&gt; Flops
      [4] =&gt; Title
      [5] =&gt; Status
      [6] =&gt; Mfix CCR(open/close)
      [7] =&gt; Scenerio-Brief Description
      [8] =&gt; Expected Results
      [9] =&gt; CCR Status
      [10] =&gt; CCR No.
      [11] =&gt; Remarks
      [12] =&gt; Testcase Path
  )
  
  $data=(
      [0] =&gt; Array
          (
              [0] =&gt; /a/b/c
              [1] =&gt;
              [2] =&gt;
              [3] =&gt;
              [4] =&gt;
              [5] =&gt; Done
              [6] =&gt; close
              [7] =&gt; 2D Elastic with scanformat=parallel
              [8] =&gt; No miscompares for both scan and logic tests
              [9] =&gt;
              [10] =&gt; 1716280
              [11] =&gt;
              [12] =&gt;
          )
  
      [1] =&gt; Array
          (
              [0] =&gt; /x/y/z
              [1] =&gt;
              [2] =&gt;
              [3] =&gt;
              [4] =&gt;
              [5] =&gt; Done
              [6] =&gt; close
              [7] =&gt; 2D Elastic with scanformat=parallel &amp; explicitshifts
              [8] =&gt; No miscompares for both scan and logic tests
              [9] =&gt;
              [10] =&gt; 1717028
              [11] =&gt;
              [12] =&gt;
          )
  
      [2] =&gt; Array
          (
              [0] =&gt; /a/p/q
              [1] =&gt;
              [2] =&gt;
              [3] =&gt;
              [4] =&gt;
              [5] =&gt; Done
              [6] =&gt;
              [7] =&gt; Error if explicitshifts greater than scan length
              [8] =&gt; No miscompares for both scan and logic tests
              [9] =&gt;
              [10] =&gt;
              [11] =&gt;
              [12] =&gt;
          )
  
      [3] =&gt; Array
          (
              [0] =&gt; /s/m/p
              [1] =&gt;
              [2] =&gt;
              [3] =&gt;
              [4] =&gt;
              [5] =&gt; Done
              [6] =&gt;
              [7] =&gt; 2D Elastic + wide 1 Masking with scanformat=parallel
              [8] =&gt; No miscompares for both scan and logic tests
              [9] =&gt;
              [10] =&gt;
              [11] =&gt;
              [12] =&gt;
          )
  
  )
  </code></pre>
  
  <p>I want to set the numeric keys [0]....[12] as the values of $headers array.
  Means i want to replace [0]....[12] with $header[0]....$headers[12].</p>
  
  <p>Please provide a solution.</p>