array_pop

PHP 4, PHP 5, PHP 7, PHP 8
array_pop - Pop the element off the end of array

Example #1 array_pop example

Result: Array ( [0] => orange [1] => banana [2] => apple )
PHP Version:


Example #2 of array_pop

PHP Version:


Function array_pop:

Arrays Functions

Most used PHP functions