array_pop()
array_pop - Pop the element off the end of array
Syntax
mixed array_pop (
array &$array)
Arguments
- array - The array to get the value from.
Description
array_pop() pops and returns the last value of the array, shortening the array by one element. If array is empty (or is not an array), NULL will be returned. Will additionally produce a Warningwhen called on a non-array.
Version
PHP 4, 5
Return value
Returns the last value of array. If array is empty (or is not an array), NULL will be returned.