note 69429 added to language.references.unset

From: Date: Tue, 05 Sep 2006 23:02:52 +0000
Subject: note 69429 added to language.references.unset
Groups: php.notes 
Request: Send a blank email to php-notes+get-116733@lists.php.net to get a copy of this message
Your idea about unsetting all referenced variables at once is right, just a tiny note that you changed NULL with unset()... again, unset affects only one name and NULL affects the data, which is kept by all the three names... <?php $a = 1; $b =& $a; $b = NULL; ?> This does also work! <?php $a = 1; $b =& $a; $c =& $b; $b = NULL; ?> ---- Server IP: 66.163.161.117 Probable Submitter: 84.142.40.128 ---- Manual Page -- http://www.php.net/manual/en/language.references.unset.php Edit -- https://master.php.net/note/edit/69429 Del: integrated -- https://master.php.net/note/delete/69429/integrated Del: useless -- https://master.php.net/note/delete/69429/useless Del: bad code -- https://master.php.net/note/delete/69429/bad+code Del: spam -- https://master.php.net/note/delete/69429/spam Del: non-english -- https://master.php.net/note/delete/69429/non-english Del: in docs -- https://master.php.net/note/delete/69429/in+docs Del: other reasons-- https://master.php.net/note/delete/69429 Reject -- https://master.php.net/note/reject/69429 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#116733) next »