PHP: How to get last array element

endSet the internal pointer of an array to its last element

end (array &$array)
end() advances array's internal pointer to the last element, and returns its value. 

(c) php.net

No comments:

Post a Comment