Re: New negative key in arrays

From: Date: Sat, 21 Jun 2003 18:49:08 +0000
Subject: Re: New negative key in arrays
References: 1 2  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969354731@lists.php.net to get a copy of this message
On Sat, 2003-06-21 at 09:18, André LFS Bacci wrote: > It occurs two times in the document > > New value in array with no ley: > if exist integer key -> maximun + 1 ... unless negative key ... in this case > ... new key is zero. > if not exist integer key -> new key is zero > > []s > > André Æ I changed it. It appears that the behaviour has changed. I'll find out when and add a versioning note (or if it's a bug I'll just fix it). PHP 4.3.2: array(2) { [-5]=> string(10) "minus five" [0]=> string(10) "minus four" } Torben -- Torben Wilson <torben@php.net> +1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.com http://www.hybrid17.com http://www.themainonmain.com -----==== Boycott Starbucks! http://www.haidabuckscafe.com ====-----

« previous php.doc (#969354731) next »