Re: Re: PHP 4.0 Bug #5226 Updated: arrayfields reorganized when using array_pop
| From: | Andrei Zmievski | Date: | Tue, 27 Jun 2000 14:16:10 +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-22486@lists.php.net to get a copy of this message | ||
On Tue, 27 Jun 2000, Stanislav Malyshev wrote:
> Yeah. So we should put on all splice-derived functions big red sign "It
> wuld mess with all keys that look like numerics". I do not see what else
> can we do now about it.
Yes, and that's another reason to keep array_pop() using php_splice() -
otherwise, like you pointed out, array_pop($a) array_splice($a, -1)
would be inconsistent.
-Andrei
"Later in this talk, I intend to define
the universe and give three examples." -- Larry Wall