On Aug 06, Andrei Zmievski wrote:
> What would you have them start with? :)
> Imagine this scenario:
> $array1 = array('a', 'b', 'c');
> $array2 = array(2=>'d', 3=>'e', 4=>'f');
> $result = array_merge($array1, $array2);
> In this case, $result is:
>  => a
>  => b
>  => c
>  => d
>  => e
>  => f
> What should it look like according to you?
 => a
 => b
 => c
 => e
 => d
 => f
with e and d swapped round. any value in $array2 that already had
a key in $array1 would be put on the end of a "queue" of values to be
stuck on the end of $array1 when the other values have finished merging.
it's a shame there's no space left on the end of the function that you
could put a constant to specify what behaviour you want.
This is not the signature you are looking for. Move along.
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]