Pop the element off the end of array
Syntax
array_pop ( array &$array ) : mixed
Parameters
array
The array to get the value from.
Return
Returns the value of the last element of array. If array is empty (or is not an array), NULL will be returned.
Examples
<? $array = array("orange", "banana", "apple", "raspberry"); $return = array_pop($array); print_r($return); ?>
raspberry