Use array_shift() to remove and return the first element of an array, shifting all other elements down.
Source Code
$numbers = [1, 2, 3, 4, 5];
$firstNumber = array_shift($numbers);
echo $firstNumber; // Outputs: 1
print_r($numbers); // Remaining array