Definition :
The array_pop() function deletes the last element of an array.
array_pop(array)
Parameter | Description |
---|---|
array | Required. Specifies an array |
For Example : Delete the last element of an array:
Output :
Array
(
[0] => Web
[1] => Designing
[2] => House
)