PHP function array_pop()

Availability in PHP 4.0

Pop the element off the end of array

Parameters

Parameter Data type Default value Note
$array array not The array to get the value from.

Return values

mixed

the last value of array. If array is empty (or is not an array), &null; will be returned.

Additional resources

Official array-pop documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.