Railo 4.2 Reference
Choose a function:

Function ARRAYMERGE

This function creates a new array with data from the two passed arrays. To add all the data from one array into another without creating a new array see the built in function ArrayAppend(arr1, arr2, true).

Beispiel

arraymerge(array array1,array array2,[boolean leaveIndex]):array

Argumente

Die Argumente für diese Funktion sind fest vorgegeben. Ausser den nachfolgenden Argumenten dürfen keine weiteren verwendet werden.
Name Typ Required Beschreibung
array1 array  Yes first array  
array2 array  Yes second array  
leaveIndex boolean  No defines whether the merged arrays will maintain their index values or if the second array will simply append to the first one. If both arrays contain the same index and you specified the parameter leaveIndex to true, the corresponding index in the resulting array will always contain the value of the index of the first array.