Menu Riverview Church

ARRAY_POP

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

raspberry

INTERNAL

array_push

array_shift

array_unshift

EXTERNAL

PHP