Re: FW: [PHP-NOTES] note 12849 added to function.array-merge.php
| From: | Andrei Zmievski | Date: | Fri, 11 May 2001 19:14:57 +0000 |
| Subject: | Re: FW: [PHP-NOTES] note 12849 added to function.array-merge.php | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-3244@lists.php.net to get a copy of this message | ||
I'm definitely not seeing this behavior. Does he have some code
reproducing this?
On Fri, 11 May 2001, James Moore wrote:
> Maybe somthing the Zend guys can look at.
>
> - James
>
> > -----Original Message-----
> > From: eblade@blackmagik.dynup.net [mailto:eblade@blackmagik.dynup.net]
> > Sent: 11 May 2001 09:36
> > To: php-notes@lists.php.net
> > Subject: [PHP-NOTES] note 12849 added to function.array-merge.php
> >
> >
> > A little bit of a pitfall. Using PHP4, it appears that when
> > using strings as keys, if I do an array_merge, I end up with the
> > array being double size. It now contains both the string keyed,
> > and a complete set of all the array elements with numeric keys.
> > Then if I do another array_merge, I end up with the entire thing
> > doubled in size. Then four times in size. Something to beware of.
> >
> > http://www.php.net/manual/en/function.array-merge.php
> >
> >
> > --
> > PHP Notes Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-notes-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-notes-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
> --
> PHP Quality Assurance Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-qa-unsubscribe@lists.php.net
> For additional commands, e-mail: php-qa-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
-Andrei
"In this age, which believes that there is a short cut to everything,
the greatest lesson to be learned is that the most difficult way is, in
the long run, the easiest."
-Henry Miller, The Books in My Life