ID: 14917 Updated by: sander Reported By: [EMAIL PROTECTED] Status: Open Old Bug Type: Output Control Bug Type: Arrays related Operating System: BSD & Windows PHP Version: 4.1.1 New Comment:
Reclassified. Previous Comments: ------------------------------------------------------------------------ [2002-01-07 16:01:29] [EMAIL PROTECTED] When I try to use array_merge an array with an associative array the array is renumbered starting at 0. Problem on Win2k with 4.1.0 & 4.1.1 Problem on OpenBSD with 4.0.6 Here is a quick sample: <? $TEST=array_merge(array("7"=>array(1=>"TEST",2=>"TEST",4=>"TEST"),"9"=>array(1=>"TEST",2=>"TEST",4=>"TEST")),array("A"=>array(1=>"TEST",2=>"TEST",4=>"TEST"),"B"=>array(1=>"TEST",2=>"TEST",4=>"TEST"))); foreach ($TEST as $key=>$val) {print "$key<BR>";} ?> Output: 0 1 A B ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14917&edit=1 -- 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]