note 61039 added to language.references.unset
| From: | libi at osu1 dot php dot net | Date: | Tue, 24 Jan 2006 08:20:32 +0000 |
| Subject: | note 61039 added to language.references.unset | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-102342@lists.php.net to get a copy of this message | ||
clerca at inp-net dot eu dot org
"
If you have a lot of references linked to the same contents, maybe it could be useful to do this :
<?php
$a = 1;
$b = & $a;
$c = & $b; // $a, $b, $c reference the same content '1'
$b = NULL; // All variables $a, $b or $c are unset
?>
"
------------------------
NULL will not result in unseting the variables.
Its only change the value to "null" for all the variables.
becouse they all points to the same "part" in the memory.
----
Server IP: 192.117.122.43
Probable Submitter: 81.218.104.136
----
Manual Page -- http://www.php.net/manual/en/language.references.unset.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+61039
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61039&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61039&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61039&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61039&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61039&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61039&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61039&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+61039&report=yes
Search -- http://master.php.net/manage/user-notes.php