Re: how to join two arrays? [message #185714 is a reply to message #185713] |
Sun, 04 May 2014 17:56 |
Thomas 'PointedEars'
Messages: 701 Registered: October 2010
Karma:
|
Senior Member |
|
|
Denis McMahon wrote:
> then: array_merge ( $arr1, $arr2 );
>
> will generate:
>
> [0] "."
> [1] ".."
> [2] "foo.bar"
> [3] "really fubar"
> [4] "."
> [5] ".."
> [6] "bah bah.blacksheep"
> [7] "fufu.fubar"
>
> How you then tell which file is where, that's your headache at this point.
array_map() serves here.
PointedEars
--
> If you get a bunch of authors […] that state the same "best practices"
> in any programming language, then you can bet who is wrong or right...
Not with javascript. Nonsense propagates like wildfire in this field.
-- Richard Cornford, comp.lang.javascript, 2011-11-14
|
|
|