Re: Re: PHP 4.0 Bug #5226 Updated: arrayfields reorganized when using array_pop

From: Date: Tue, 27 Jun 2000 14:08:05 +0000
Subject: Re: Re: PHP 4.0 Bug #5226 Updated: arrayfields reorganized when using array_pop
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-22483@lists.php.net to get a copy of this message
AZ>> You're right. So maybe it's best that we don't care about the keys. I AZ>> have no idea why someone would start keys from 1 or 5. We have another trouble here. <? $a["abc"] = 1; $a["4"] = 2; $a["def"] = 3; array_pop($a); var_dump($a); ?> gives: array(2) { ["abc"]=> int(1) [0]=> int(2) } It killed my "4" and made it be 0. Grrr... -- Stanislav Malyshev stas@zend.com +972-3-6139665

« previous php.dev (#22483) next »