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

From: Date: Tue, 27 Jun 2000 13:30:35 +0000
Subject: Re: Re: PHP 4.0 Bug #5226 Updated: arrayfields reorganized when using array_pop
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-22471@lists.php.net to get a copy of this message
On Tue, 27 Jun 2000, Stanislav Malyshev wrote: > It does. Here: > > <? > $a=array(1,2,3); > array_pop($a); > var_dump($a); > ?> > > Says: > > array(2) { > [0]=> > int(1) > [1]=> > int(2) > } > > What's wrong? Try doing: $a[1] = 1; $a[2] = 2; $a[3] = 3; array_pop($a); -Andrei * 2 + 2 = 5 for extremely large values of 2. *

« previous php.dev (#22471) next »