array_push - chung-leong/qb GitHub Wiki

array_push - Push one element onto the end of array

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

array_push() adds an element to array, increasing its length by one. array must be an expandable array.

Parameters:

array - The array to add the value to.

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

... - Additional values to add.

Return Value:

The new length of array.

Note:

array_push() accepts multiple values starting from version 1.4.

Version

1.0 and above.