note 126161 added to language.references.unset
| From: | frowa at foxmail dot com | Date: | Sat, 12 Jun 2021 10:33:19 +0000 |
| Subject: | note 126161 added to language.references.unset | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-216511@lists.php.net to get a copy of this message | ||
it's my way to remember.
<?php
// the var $a is point to the value 1, as a line connect to value 1
$a = 1;
// the var $b point to the value which the var $a point to, as a new line connect to value 1
$b =& $a;
// cut the line of the var $a to value 1,now $a is freedom,it's nothing point to. so the value
of $a is null
unset($a);
?>
$a--------> 1
â
|
|
$b
----
Server IP: 45.112.84.4
Probable Submitter: 45.112.85.242 (proxied: 202.226.25.216)
----
Manual Page -- https://php.net/manual/en/language.references.unset.php
Edit -- https://main.php.net/note/edit/126161
Del: integrated -- https://main.php.net/note/delete/126161/integrated
Del: useless -- https://main.php.net/note/delete/126161/useless
Del: bad code -- https://main.php.net/note/delete/126161/bad+code
Del: spam -- https://main.php.net/note/delete/126161/spam
Del: non-english -- https://main.php.net/note/delete/126161/non-english
Del: in docs -- https://main.php.net/note/delete/126161/in+docs
Del: other reasons-- https://main.php.net/note/delete/126161
Reject -- https://main.php.net/note/reject/126161
Search -- https://main.php.net/manage/user-notes.php