array_pop
Pop up the last unit of the array (out of the stack)
array_pop()
function deletes the last element in the array.
Delete the last element in the array
<?php $a = array ( "red" , "green" , "blue" ) ; array_pop ( $a ) ; print_r ( $a ) ; ?>
Try it yourself
array_pop ( array )
parameter | describe |
---|---|
array | Required. Specify array. |