PHP end() functionThe end( ) function is an inbuilt function of PHP. The end() function Set the internal pointer of an array to its last element. This function was introduced in 4.0. SyntaxParameter
ReturnsThe end( ) function returns the value of the last element in the array on success or false if the array is empty. Example 1Output: sehwag Example 2Output: java Example 3Output: ajay Example 4Output: hockeycricketer
Next TopicPHP Array Functions
|