diff --git a/language/references.xml b/language/references.xml
index 4e8937e1ea..72fe8f7e40 100644
--- a/language/references.xml
+++ b/language/references.xml
@@ -21,7 +21,7 @@
- $a = & $b
+$a =& $b
@@ -44,12 +44,12 @@
- function foo(&$var) {
- $var++;
- }
+function foo(&$var) {
+ $var++;
+}
- $a=5;
- foo($a);
+$a=5;
+foo($a);
@@ -60,15 +60,15 @@
What references aren't?
- As said above. references aren't pointers. That means, the following
+ As said above, references aren't pointers. That means, the following
construct won't do what you expect:
- function foo(&$var) {
- $var =& $GLOBALS["baz"];
- }
- foo($bar);
+function foo(&$var) {
+ $var =& $GLOBALS["baz"];
+}
+foo($bar);
@@ -93,12 +93,12 @@
- function &find_var($param) {
- ...code...
- return $found_var;
- }
+function &find_var($param) {
+ ...code...
+ return $found_var;
+}
- $foo =& find_var($bar);
+$foo =& find_var($bar);
@@ -118,9 +118,9 @@
- $a = 1;
- $b =& $a;
- unset($a);
+$a = 1;
+$b =& $a;
+unset($a);
@@ -154,8 +154,7 @@
- $var =& $GLOBALS["var"];
-
+$var =& $GLOBALS["var"];
@@ -169,7 +168,7 @@
$this
- In an object method, $this is always reference to the caller object.
+ In an object method, $this is always reference to the caller object.