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