title: PHP : How to include another array's elements in another array's index?
body: <p>I have two arrays:</p>
  
  <pre><code>array(3)
  {  
     [0]=&gt;
        string(1) "1"
     [1]=&gt;
        string(1) "1"
     [2]=&gt;
        string(1) "2"
  }
  
  array(3)
  {  
     [0]=&gt;
        string(1) "abc"
     [1]=&gt;
        string(1) "def"
     [2]=&gt;
        string(1) "ghi"
  }
  </code></pre>
  
  <p>Is there any way I could put the first array's elements into the second array's index producing the following result :</p>
  
  <pre><code>array(3)
  {  
     [1]=&gt;
        string(1) "abc"
     [1]=&gt;
        string(1) "def"
     [2]=&gt;
        string(1) "ghi"
  }
  </code></pre>
  
  <p>How can I do this in PHP? Thanks in advance. </p>