PHP array_shift() 函数

定义和用法

array_shift() 函数删除数组中第一个元素,并返回被删除元素的值。

语法

array_shift(array)
参数 描述
array 必需。规定数组。