Name
array_shift
Synopsis
mixed array_shift(array stack
)
Similar to array_pop( )
,
but instead of removing and returning the last element in the array,
it removes and returns the first element in the array. If the array
is empty, or if the argument is not an array, returns NULL
.
Get Programming PHP, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.