title: new array formation from current array in php
body: <p>I have an array like this in php</p>
  
  <pre><code>Array
  (
      [0] =&gt; 1
      [1] =&gt; 3
      [2] =&gt; 5
      [3] =&gt; 10
      [4] =&gt; 14
      [5] =&gt; 15
  )
  </code></pre>
  
  <p>Now I want it to look like</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
             [0] =&gt; 1
             [1] =&gt; 3
          )
      [1] =&gt; =&gt; Array
          (
             [0] =&gt; 5
             [1] =&gt; 10
          )
      [2] =&gt; =&gt; Array
          (
             [0] =&gt; 14
             [1] =&gt; 15
          )
  )
  </code></pre>
  
  <p>Please suggest how to get the desired output using for loop.</p>