note 114620 added to language.references
| From: | alexander at gamerev dot org | Date: | Thu, 13 Mar 2014 02:47:21 +0000 |
| Subject: | note 114620 added to language.references | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-198878@lists.php.net to get a copy of this message | ||
Simply put, here's an example of what referencing IS:
<?php
$foo = 5;
$bar = &$foo;
$bar++;
echo $foo;
?>
The above example will output the value 6, because $bar references the value of $foo, therefore,
when changing $bar's value, you also change $foo's value too.
----
Server IP: 72.52.91.14
Probable Submitter: 89.137.200.28
----
Manual Page -- http://php.net/manual/en/language.references.php
Edit -- https://master.php.net/note/edit/114620
Del: integrated -- https://master.php.net/note/delete/114620/integrated
Del: useless -- https://master.php.net/note/delete/114620/useless
Del: bad code -- https://master.php.net/note/delete/114620/bad+code
Del: spam -- https://master.php.net/note/delete/114620/spam
Del: non-english -- https://master.php.net/note/delete/114620/non-english
Del: in docs -- https://master.php.net/note/delete/114620/in+docs
Del: other reasons-- https://master.php.net/note/delete/114620
Reject -- https://master.php.net/note/reject/114620
Search -- https://master.php.net/manage/user-notes.php