title: PHP - Combine sub-arrays and sort by value?
body: <p>This is what i've got now:</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [0] =&gt; Array
                  (
                      [id] =&gt; 53
                      [date] =&gt; 18 Sep 2010 10:29
                      [user] =&gt; 52
                      [post] =&gt; ytiuy
                  )
  
              [1] =&gt; Array
                  (
                      [id] =&gt; 55
                      [date] =&gt; 11 Sep 2010 11:14
                      [user] =&gt; 52
                      [post] =&gt; this is a test post :]
                  )
  
          )
  
      [1] =&gt; Array
          (
              [0] =&gt; Array
                  (
                      [id] =&gt; 56
                      [date] =&gt; 4 Sep 2010 03:19
                      [user] =&gt; 55
                      [post] =&gt; pppost :DD:D:D:D
                  )
  
          )
  
  )
  </code></pre>
  
  <p>I want to remove the first two "steps" in the array, and then sort the array by the 'date' value, like this:</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [id] =&gt; 56
              [date] =&gt; 4 Sep 2010 03:19
              [user] =&gt; 55
              [post] =&gt; pppost :DD:D:D:D
          )
  
      [1] =&gt; Array
          (
              [id] =&gt; 55
              [date] =&gt; 11 Sep 2010 11:14
              [user] =&gt; 52
              [post] =&gt; this is a test post :]
          )
  
      [2] =&gt; Array
          (
              [id] =&gt; 53
              [date] =&gt; 18 Sep 2010 10:29
              [user] =&gt; 52
              [post] =&gt; ytiuy
          )
  )
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>Thanks a bunch, appreciate all help! :)</p>
  
  <p>EDIT: I should also mention that the amount of arrayitems will not always be the same.</p>