title: Merge two multidimensional arrays and reindex all subarrays
body: <p>I have two arrays, I want to merge these two arrays into single array. Please view the detail below:</p>
  
  <p>First Array:</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [a] =&gt; 1
              [b] =&gt; 2
              [c] =&gt; 3
          )
  
      [1] =&gt; Array
          (
              [a] =&gt; 3
              [b] =&gt; 2
              [c] =&gt; 1
          )
  )
  </code></pre>
  
  <p>Second Array:</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [d] =&gt; 4
              [e] =&gt; 5
              [f] =&gt; 6
          )
  
      [1] =&gt; Array
          (
              [d] =&gt; 6
              [e] =&gt; 5
              [f] =&gt; 4
          )
  )
  </code></pre>
  
  <p>I want this result. Does somebody know how to do this?</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [0] =&gt; 1
              [1] =&gt; 2
              [2] =&gt; 3
          )
  
      [1] =&gt; Array
          (
              [0] =&gt; 3
              [1] =&gt; 2
              [2] =&gt; 1
          )
      [2] =&gt; Array
          (
              [0] =&gt; 4
              [1] =&gt; 5
              [2] =&gt; 6
          )
  
      [3] =&gt; Array
          (
              [0] =&gt; 6
              [1] =&gt; 5
              [2] =&gt; 4
          )
  )
  </code></pre>
  
  <p>Hope you have understand the question. 
  Thank you in advance.</p>