note 9694 modified in Arrays by zak

From: Date: Mon, 18 Dec 2000 21:13:07 +0000
Subject: note 9694 modified in Arrays by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-8858@lists.php.net to get a copy of this message
[Editor's Note: PHP almost always passes arguments by value and not by reference. current() is doing exactly what it seems to be doing - returning a copy of the value stored in the array element.] 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/arrays.php

« previous php.notes (#8858) next »