function last($arr)libphutil Technical Documentation (Core Utilities)
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 | $arr | Array to retrieve the last element from. |
Return
wild | The last value of the array. |
- Defined
- src/utils/utils.php:830