Hi !
I'm trying to remove "banana" from $stack array
$stack = array("orange", "banana", "apple", "raspberry");
in this way
$stack = array("orange", "banana", "apple", "raspberry");
array_unshift($stack,"banana");
array_shift($stack);
print_r($stack);
But it's not working , this is the result
Array ( [0] => orange [1] => banana [2] => apple [3] => raspberry )
How to remove a value from array , for example [1] => banana ?
Thanks