title: How to store array as key value pair in php
body: <p>I have an array $result as follows</p>
  
  <pre><code>Array 
  ( [0] =&gt; Array ( 
  [0] =&gt; Mr 
  [1] =&gt; vinay 
  [2] =&gt; hs 
  [3] =&gt; tester 
  [4] =&gt;vinay.hs@abc.com 
  [5] =&gt; 909099 
  [6] =&gt; Yes ) 
  
  [1] =&gt; Array ( 
  [0] =&gt; Mr 
  [1] =&gt; Suresh 
  [2] =&gt; Kumar 
  [3] =&gt; tester 
  [4] =&gt; vinay.hs@abc.com 
  [5] =&gt; 809090 
  [6] =&gt; No ) 
  ).
  </code></pre>
  
  <p>I want to store this array as </p>
  
  <pre><code>Array
  ([0]=&gt;Array ( 
  [title] =&gt; Mr 
  [firstname] =&gt; vinay 
  [lastname] =&gt; hs 
  [job_title] =&gt; tester 
  [email] =&gt;vinay.hs@abc.com 
  [phone] =&gt; 909099 
  [is_employed] =&gt; Yes ) 
  
  [1] =&gt; Array ( 
  [title] =&gt; Mr 
  [firstname] =&gt; Suresh 
  [lastname] =&gt; Kumar 
  [job_title] =&gt; tester 
  [email] =&gt; vinay.hs@abc.com 
  [phone] =&gt; 809090 
  [is_employed] =&gt; No ) ).
  </code></pre>
  
  <p>Explain me how to do this</p>