note 4985 deleted from function.settype by felipe
| From: | felipe@php.net | Date: | Sat, 29 Dec 2007 17:56:17 +0000 |
| Subject: | note 4985 deleted from function.settype by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134140@lists.php.net to get a copy of this message | ||
Note Submitter: tboothby at felfel dot com
----
settype() for some reason increases the initial internal counter for the index of an array if you
use<br>
settype($foo, "array");$foo[]='bar';<br>
'bar' will be stored in $foo[1]. furthermore, if you use<br>
reset($foo);$foo[]='barr';<br>
'barr' will be stored in $foo[1] again!
i'm using version 3.0.12 on linux 2.2.5-22