Skip to content
Chung Leong edited this page Jan 10, 2022 · 3 revisions

array_shift - Shift an element off the beginning of array

mixed array_pop ( array &$array )

array_shift() shifts the first value of the array off and returns it, shortening the array by one element and moving everything down. array must be an expandable array. Passing an empty array to this function triggers a fatal error.

Parameters:

array - The array to get the value from.

Return Value:

The first value of array.

Version

1.0 and above.

Clone this wiki locally