Skip to content

Function: array_shift() ​

array_shift<T>(array): T | undefined

Defined in: src/php-arrays.ts:186

Shift an element off the beginning of array.

Type Parameters ​

T ​

T

Parameters ​

array ​

T[]

The source array

Returns ​

T | undefined

The shifted element

Documentation of 1.0.13 , built from cf61d3b on 1.0.13 by pipeline #2985011498 on 2026-10-21.