PHP array_shift() Function
The array_shift() function removes and returns the first element from an array, shifting all other elements down by one position.
Syntax
array_shift(array &$array): mixed
Try It Online
Output
Click Run to execute your code
Enjoying these tutorials?