title: multidimensional mixed associative/numeric array shifting
body: <p>i have an issue i need to fix sooner than later. if i had the time to rewrite the entire script i would, but such is the life of a programmer, right? anywho, i've taken over a project and i have a multidimensional mixed associative/numeric array like so:</p>
  
  <pre><code>Array
  (
      [item1] =&gt; Array
          (
              [dataset] =&gt; Array()
              [3] =&gt; Array()
              [7] =&gt; Array()
          )
      [item2] =&gt; Array
          (
              [dataset] =&gt; Array()
              [4] =&gt; Array()
              [19] =&gt; Array()
              [2] =&gt; Array()
          )
  )
  </code></pre>
  
  <p>what i need to do is shift the <strong>dataset</strong> index in each of the <strong>itemX</strong> indexes to be the last index to result this:</p>
  
  <pre><code>Array
  (
      [item1] =&gt; Array
          (
              [3] =&gt; Array()
              [7] =&gt; Array()
              [dataset] =&gt; Array()
          )
      [item2] =&gt; Array
          (
              [4] =&gt; Array()
              [19] =&gt; Array()
              [2] =&gt; Array()
              [dataset] =&gt; Array()
          )
  )
  </code></pre>
  
  <p>a few things that may help make this happen is that i <strong><em>know</em></strong> that the <strong>dataset</strong> index will always be the first index in the <strong>itemX</strong> index and the key will always be 'dataset' and the others will all always be numeric indexes. is there anyway to do this in php? the fact that it's a mixed array is throwing me. i can't have the numeric indexes getting reset and starting at 0. it doesn't matter if they're order is shifted, only that they all come before the 'dataset' index. maybe it's just one of those days.... :\ any suggestions or comments are greatly appreciated.</p>