array_shift < PHP
The array_shift function removes first element from an array.
$fruits = array('apple', 'banana', 'cherry', 'date');
$fruitShift = array_shift($fruits);
echo $fruitShift;
// apple
print_r($fruits);
// Array(
// [0] => banana
// [1] => cherry
// [2] => date
// )