mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Explain this a bit
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@164369 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
4ec46c0db6
commit
3a35f32f02
1 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.29 $ -->
|
||||
<!-- $Revision: 1.30 $ -->
|
||||
<chapter id="language.references">
|
||||
<title>References Explained</title>
|
||||
|
||||
|
@ -112,6 +112,9 @@ echo "var2 is set to '$var2'\n"; // var2 is set to 'Example variable'
|
|||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
Think about <literal>global $var;</literal> as a shortcut to <literal>$var
|
||||
=& $GLOBALS['var'];</literal>. Thus assigning other reference
|
||||
to <literal>$var</literal> only changes the local variable's reference.
|
||||
</para>
|
||||
</warning>
|
||||
<para>
|
||||
|
|
Loading…
Reference in a new issue