array_shift

PHP 4, PHP 5, PHP 7, PHP 8
array_shift - Shift an element off the beginning of array

Example #1 array_shift example

Result: Array ( [0] => banana [1] => apple [2] => raspberry )
PHP Version:


Example #2 of array_shift

PHP Version:


Function array_shift:

Arrays Functions

Most used PHP functions