note 103567 added to language.references.unset

From: Date: Wed, 20 Apr 2011 16:15:49 +0000
Subject: note 103567 added to language.references.unset
Groups: php.notes 
Request: Send a blank email to php-notes+get-179010@lists.php.net to get a copy of this message
The below example by (rustin dot phares at hotmail dot com) will not work. I read the documentation on references and it seemed a little bit odd, according to docs when unsetting a reference you only unset the variable's reference and the variable itself. This won't unset $a and $b and $c. It will only unset $c. ------------------ <?php $a = 1; $b =& $a; $c =& $b; unset($c); ?> ------------------ ---- Server IP: 69.147.83.197 Probable Submitter: 190.46.19.132 ---- Manual Page -- http://www.php.net/manual/en/language.references.unset.php Edit -- https://master.php.net/note/edit/103567 Del: integrated -- https://master.php.net/note/delete/103567/integrated Del: useless -- https://master.php.net/note/delete/103567/useless Del: bad code -- https://master.php.net/note/delete/103567/bad+code Del: spam -- https://master.php.net/note/delete/103567/spam Del: non-english -- https://master.php.net/note/delete/103567/non-english Del: in docs -- https://master.php.net/note/delete/103567/in+docs Del: other reasons-- https://master.php.net/note/delete/103567 Reject -- https://master.php.net/note/reject/103567 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#179010) next »