PHP array_pop() Function

PHP array_pop Function


Definition :

The array_pop() function deletes the last element of an array.

Syntax :

    array_pop(array)

Parameter :
Parameter Description
array Required. Specifies an array

For Example : Delete the last element of an array:

Output :

Array
(
    [0] => Web
    [1] => Designing
    [2] => House
)