cleanup (grammar)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@165774 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Sean Coates 2004-08-08 17:26:59 +00:00
parent de00510ea8
commit 765034256b

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.36 $ -->
<!-- $Revision: 1.37 $ -->
<chapter id="language.references">
<title>References Explained</title>
@ -83,9 +83,9 @@ $foo =& find_var($bar);
</note>
<warning>
<para>
If you assign reference to a variable stated as <literal>global</literal>
inside function, the reference will be visible only inside the function.
You can avoid it by using <varname>$GLOBALS</varname> array.
If you assign a reference to a variable declared <literal>global</literal>
inside a function, the reference will be visible only inside the function.
You can avoid this by using the <varname>$GLOBALS</varname> array.
<example>
<title>Referencing global variables inside function</title>
<programlisting role="php">
@ -119,9 +119,9 @@ echo "var2 is set to '$var2'\n"; // var2 is set to 'Example variable'
</warning>
<note>
<para>
If you assign a value to variable with references in the <link
If you assign a value to a variable with references in a <link
linkend="control-structures.foreach">foreach</link> statement,
references are modified too.
the references are modified too.
<example>
<title>References and foreach statement</title>
<programlisting role="php">