array_pop - chung-leong/qb GitHub Wiki

array_pop - Pop an element off the end of array

mixed array_pop ( array &$array )

array_pop() pops and returns the last value of array, shortening it by one element. array must be an expandable array. Passing an empty array to this function triggers a fatal error.

Parameters:

array - The array to get the value from.

Return Value:

The last value of array.

Version

1.0 and above.