array_concat

This function takes multiple arrays as arguments, joins them together (in the order of the arguments), and returns the joined array.

 

Syntax:

array_concat(array0, [array1, ... array_n]);

ArgumentTypeDescription
array0ArrayThe first array to concatenate
[array1, ... array_n]ArrayOPTIONAL Any number of arrays to concatenate (one array per argument)

 

Returns:

Array (new array with all arrays concatenated)

 

Example:

array_1 = [1, 2, 3];
array_2 = [4, 5, 6];
array_3 = [7, 8, 9];
new_array = array_concat(array_1, array_2, array_3);

The above code first creates three arrays: array_1, array_2 and array_3. It then joins the arrays together using array_concat and stores the result in new_array.