Easy Tutorial
❮ Pdo Query Func Xml Set Default Handler ❯

PHP array_pop() Function

Complete PHP Array Reference Manual

Example

Remove the last element from an array:


Definition and Usage

The array_pop() function removes the last element from an array.


Syntax

Parameter Description
array Required. Specifies the array.

Technical Details

Return Value: Returns the last value of the array. If the array is empty or not an array, it returns NULL.
PHP Version: 4+
--- ---
❮ Pdo Query Func Xml Set Default Handler ❯