note 103566 added to language.references.unset

From: Date: Wed, 20 Apr 2011 16:13:46 +0000
Subject: note 103566 added to language.references.unset
Groups: php.notes 
Request: Send a blank email to php-notes+get-179009@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/103566 Del: integrated -- https://master.php.net/note/delete/103566/integrated Del: useless -- https://master.php.net/note/delete/103566/useless Del: bad code -- https://master.php.net/note/delete/103566/bad+code Del: spam -- https://master.php.net/note/delete/103566/spam Del: non-english -- https://master.php.net/note/delete/103566/non-english Del: in docs -- https://master.php.net/note/delete/103566/in+docs Del: other reasons-- https://master.php.net/note/delete/103566 Reject -- https://master.php.net/note/reject/103566 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#179009) next »