Merges the elements of one array with another.

array:merge(ARRAY $array1, ARRAY $array2) : ARRAY

array:merge([1,2],[5,4])
#=> [ 1, 2, 5, 4 ]

array:merge(["hello"],["friend"])
#=> [ "hello", "friend" ]

array:merge(["foo" => 1],["foo" => 2])
#=> [ "foo" => 2 ]

array:merge(["foo" => "one"],["foo" => "two"])
#=> [ "foo" => "two" ]

Copyright ©2013-2022 SunSed®. All rights reserved.