Menu Samaritan's Purse

ARRAY_SHIFT

Shift an element off the beginning of array

SYNTAX

array_shift ( array &$array ) : mixed

PARAMETERS

array

The input array.

RETURN

Returns the shifted value, or NULL if array is empty or is not an array.

EXAMPLES

orange

INTERNAL

array_pop

array_push

array_unshift

EXTERNAL

PHP