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

Anyone knows?

fms
  • 2,147
  • 4
  • 18
  • 16

2 Answers2

3

No, there isn't one built in, or part of the standard library.

A keyless set of arrays would be combined with array1.concat(array2);

But the key based merging feature of array_merge isn't available. There's a set of Array utilities in the as3corelib https://github.com/mikechambers/as3corelib (there's a method called ArrayUtil.createuniqueCopy() which might be what you want in there.)

ocodo
  • 29,401
  • 18
  • 105
  • 117
-1

maybe this http://blog.jactionscripters.com/2011/01/12/merging-two-arrays/ can be of some interest too.

nicoptere
  • 1,067
  • 6
  • 9