Page MenuHomePhorge

function last($arr)
libphutil Technical Documentation (Core Utilities)

Returns the last element of an array. This is exactly like end() except that it won't warn you if you pass some non-referencable array to it -- e.g., the result of some other array operation.

Parameters
array$arrArray to retrieve the last element from.
Return
wildThe last value of the array.