开发者

Is there a function like array_merge in PHP in actionscript 3?

开发者 https://www.devze.com 2023-02-09 10:09 出处:网络
array array_merge( array $array1[, array $arra开发者_如何学Goy2[, array $...]] ) Anyone knows?No, there isn\'t one built in, or part of the standard library.
array array_merge  ( array $array1  [, array $arra开发者_如何学Goy2  [, array $...  ]] )

Anyone knows?


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.)


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

0

精彩评论

暂无评论...
验证码 换一张
取 消