Reproducing the new array from existing array(multi array)
<p>Reproducing the new array from existing array(multi array)</p>

<p>If I have an array called as parameter:  </p>

<pre><code>$arr =  Array
          (
          [0] =&gt; Array(0,Array(0=&gt;'abc'))
          [1] =&gt; Array(0,Array(1=&gt;'def'))
          [2] =&gt; Array(1,Array(0=&gt;'ghi'))
    )
</code></pre>

<p>Want to to a function that pass $arr some thing like this</p>

<pre><code>function TODO($arr){
      //
      return $new_array;
 }
</code></pre>

<p>And the function will return 
RESULT WILL BE Reproduce elements from previous array ,And it will be got the result(returned):</p>

<pre><code>Array
    (
       [0] =&gt; Array
           (
              [0] =&gt; 'abc'
              [1] =&gt; 'def'
            )

       [1] =&gt; Array
           (
               [0] =&gt; 'ghi'
            )

    )
</code></pre>

<p>Anybody know how to do this?Please</p>

<p>thanks</p>
