Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php remove last element array

$stack = array("yellow", "red", "green", "orange", "purple");
 
// delete the last element of an array
$removed = array_pop($stack);
print_r($stack);
 
PREVIOUS NEXT
Tagged: #php #remove #element #array
ADD COMMENT
Topic
Name
2+8 =