Answers for "removing the last value of an array"

PHP
0

removing the last value of an array

<?php
$stack = array("orange", "banana", "apple", "raspberry");
$fruit = array_pop($stack);
print_r($stack);
?>
Posted by: Guest on September-05-2021

Code answers related to "removing the last value of an array"

Browse Popular Code Answers by Language