note 9694 added to Arrays
| From: | mark dot lee at OrbisUK dot com | Date: | Sun, 19 Nov 2000 17:15:33 +0000 |
| Subject: | note 9694 added to Arrays | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-7901@lists.php.net to get a copy of this message | ||
When looping through the contents of an array, current() actually seems to return a "copy"
of each element in that array. Therefore, any changes you make to the value returned by current
won't affect the value referenced by the array item.
http://www.php.net/manual/language.types.array.php