PHP function array_shift()

Availability in PHP 4.0

Shift an element off the beginning of array

Parameters

Parameter Data type Default value Note
$array array not The input array.

Return values

mixed

the shifted value, or &null; if array is empty or is not an array.

Additional resources

Official array-shift documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.