%arrayMergeValues()

Aliases%arrayMergeValues( )
Parametersarray @array1, array @array2 [, array @array3 [, ...]]

    This function takes 2 or more arrays and returns a single unified array
with all of the values re-indexed from 1 onward. The order of the merge is
the same as the order of appearance in the parameter list.

Example:

@foo->1 = "Foo 1"
@foo->2 = "Foo 2"
@foo->3 = "Foo 3"

@fee->1 = "Fee 1"
@fee->2 = "Fee 2"
@fee->3 = "Fee 3"

@merged = %arrayMergeValues( @foo, @fee )

foreach( @merged as @key => @value )
{
echo Key: @key, Value: @value
}
endforeach

Output:

Key: 1, Value: Foo 1
Key: 2, Value: Foo 2
Key: 3, Value: Foo 3
Key: 4, Value: Fee 1
Key: 5, Value: Fee 2
Key: 6, Value: Fee 3