Get last key-value pair in PHP array -


I have an array that is structured like this:

  [33] = & Gt; Array ([time] => 1285571561 [user] => test 0) [34] => Array ([time] => 1285571659 [user] => test1) [35] = & gt; Array ([time] => 1285571682 [user] => test2)  

How can I get the last value in the array, but maintaining the index [35]?

The result I see is this:

  [35] => Try to use Array ([time] => 1285571682 [user] => 2)  
  end ($ array);  

Comments