array_unshift - chung-leong/qb GitHub Wiki

array_unshift — Prepend one or more elements to the beginning of an array

uint32 array_unshift ( array &$array, mixed $value [, mixed $... ] )

array_unshift() prepends passed elements to the front of the array. array must be an expandable array.

Parameters:

array - The array to prepend the value to.

value - The value to prepend. It must be an array with correct number of elements if array is a multidimensional array.

... - Additional values to prepend.

Return Value:

The new length of array.

Version

1.0 and above.