array_shift() - Removes an element from the beginning of array

Removes an element from the beginning of an array

array_shift(array &$array): mixed

Accepts only one parameter, the array by reference

Note: This function will reset() the array pointer of the input array after use.

Returns the shifted element.

Returns null if the array is empty