FW: [PHP-NOTES] note 12849 added to function.array-merge.php

From: Date: Fri, 11 May 2001 19:00:39 +0000
Subject: FW: [PHP-NOTES] note 12849 added to function.array-merge.php
Groups: php.qa 
Request: Send a blank email to php-qa+get-3242@lists.php.net to get a copy of this message
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

« previous php.qa (#3242) next »