Web Analytics

PHP array_shift() Function

ArrayPHP 4+

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