From 765034256bdbf8fbbe79a1203aa6b28e64203df4 Mon Sep 17 00:00:00 2001 From: Sean Coates Date: Sun, 8 Aug 2004 17:26:59 +0000 Subject: [PATCH] cleanup (grammar) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@165774 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/references.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/language/references.xml b/language/references.xml index af02cbfb01..e613c5a329 100644 --- a/language/references.xml +++ b/language/references.xml @@ -1,5 +1,5 @@ - + References Explained @@ -83,9 +83,9 @@ $foo =& find_var($bar); - If you assign reference to a variable stated as global - inside function, the reference will be visible only inside the function. - You can avoid it by using $GLOBALS array. + If you assign a reference to a variable declared global + inside a function, the reference will be visible only inside the function. + You can avoid this by using the $GLOBALS array. Referencing global variables inside function @@ -119,9 +119,9 @@ echo "var2 is set to '$var2'\n"; // var2 is set to 'Example variable' - If you assign a value to variable with references in the foreach statement, - references are modified too. + the references are modified too. References and foreach statement