note 11927 added to function.unset.php

From: Date: Tue, 13 Mar 2001 19:10:40 +0000
Subject: note 11927 added to function.unset.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-12345@lists.php.net to get a copy of this message
I found a difference in unset() behavior in php4. If you unset that which is passed by reference, then when you assign the variable anew, you are no longer writing on the caller's variable! To put it plainly, pass by reference in php4 uses actual php4 references. In php3, it's done strictly by name. Seen this way, it makes perfect sense. http://www.php.net/manual/en/function.unset.php

« previous php.notes (#12345) next »