<?php $stack = array("orange", "banana", "apple", "raspberry"); $fruit = array_shift($stack); //$fruit = "orange"; ?>