Move reference operator to site next to variable, as per docs

This commit is contained in:
Malcolm Fell 2013-06-28 08:56:52 +12:00
parent 85eee3929a
commit 34852cc8be

View File

@ -114,7 +114,7 @@ echo function_result(); // Output the result of a function call that returns a v
$a = 1; $a = 1;
$b = 2; $b = 2;
$a = $b; // A now contains the same value sa $b $a = $b; // A now contains the same value sa $b
$a =& $b; // A now contains a reference to $b. Changing the value of $a will change the value of $b also, and vice-versa. $a = &$b; // A now contains a reference to $b. Changing the value of $a will change the value of $b also, and vice-versa.
``` ```
### Comparison ### Comparison