title: Array to one level higher
body: <p>I have this array:</p>
  
  <pre><code>[@attributes] =&gt; Array
                  (
                      [url] =&gt; 
                      [navigation] =&gt; true
                      [template] =&gt; home
                  )
  
              [@children] =&gt; Array
                  (
                      [0] =&gt; Array
                          (
                              [name] =&gt; Home
                          )
  
                      [1] =&gt; Array
                          (
                              [desc] =&gt; Lorem ipsum dolor
                          )
  
                      [2] =&gt; Array
                          (
                              [@children] =&gt; Array......
  </code></pre>
  
  <p>I need it to instead be this:</p>
  
  <pre><code>[@attributes] =&gt; Array
                  (
                      [url] =&gt; 
                      [navigation] =&gt; true
                      [template] =&gt; home
                  )
  
              [@children] =&gt; Array
                  (
                        [name] =&gt; Home
                        [desc] =&gt; Lorem ipsum dolor
                        [@children] =&gt; Array......
  </code></pre>
  
  <p>I can't change the way this array is actually being built unfortunately so I need to basically get rid of each item being in their own array, they should all be nested under children.</p>
  
  <p>Thanks in advance</p>