array_merge - chung-leong/qb GitHub Wiki

array_merge - Merge two or more arrays

array array_merge( array $array1, array $array2 [, $... ] )

array_merge() merges the elements of one or more arrays together so that the values of one are appended to the end of the previous one. It returns the resulting array.

Parameters:

array1 - The initial array.

array2 - The array to append. It can be a scalar if array1 is a one-dimensional array.

... - Additional arrays.

Return Value:

An array containing the elements in array1, array2, and any other arrays.

Version

1.4 and above.