title: Get last key-value pair in PHP array
body: <p>I have an array that is structured like this:</p>
  
  <pre><code>[33] =&gt; Array
      (
          [time] =&gt; 1285571561
          [user] =&gt; test0
      )
  
  [34] =&gt; Array
      (
          [time] =&gt; 1285571659
          [user] =&gt; test1
      )
  
  [35] =&gt; Array
      (
          [time] =&gt; 1285571682
          [user] =&gt; test2
      )
  </code></pre>
  
  <p>How can I get the last value in the array, but maintaining the index [35]?</p>
  
  <p>The outcome that I am looking for is this:</p>
  
  <pre><code>[35] =&gt; Array
      (
          [time] =&gt; 1285571682
          [user] =&gt; test2
      )
  </code></pre>