title: php array remove key and shift values up
body: <p>I've researched topics similar to this but not exactly what I'm looking to do.
  I have a multidimensional array like the following.</p>
  
  <pre><code>[code]  =&gt;  BILL
  [assets] =&gt; Array
      (
          [en] =&gt; Array
              (
                  [datatype] =&gt; My Assets
                  [data] =&gt; Array
                      (
                          [Corporate Equity] =&gt; 41
                          [Global Equity] =&gt; 24
                          [Fixed Income – Government] =&gt; 22
                          [Fixed Income – Corporate] =&gt; 8.1
                          [Other] =&gt; 3.57
                      )
  
              )
  
      )
  </code></pre>
  
  <p>I'd like to remove the first inner array, but preserve the values. Shift them up one level in the array so that it looks like this.</p>
  
  <pre><code>[code]   =&gt; BILL
  [assets] =&gt; Array
      (
  
          [datatype] =&gt; My Assets
          [data] =&gt; Array
              (
                  [Corporate Equity] =&gt; 41
                  [Global Equity] =&gt; 24
                  [Fixed Income – Government] =&gt; 22
                  [Fixed Income – Corporate] =&gt; 8.1
                  [Other] =&gt; 3.57
              )
  
  
      )
  </code></pre>
  
  <p>This is just the beginning of the array, there are other instances of the same key <code>[en]</code> at the same level.</p>
  
  <p>I've tried unset, array_shift and others but I need to keep the contents of <code>[en]</code>, just shift them up one level in the array.</p>