diff options
author | Malcolm Fell <malcolm@vendhq.com> | 2013-06-28 08:56:52 +1200 |
---|---|---|
committer | Malcolm Fell <malcolm@vendhq.com> | 2013-06-28 08:56:52 +1200 |
commit | 34852cc8be15e4ba643001dac8c0c0ca1ac48dca (patch) | |
tree | efe915fbd2c6ee4a94063d645a29ef9fa6fb04a3 /php.html.markdown | |
parent | 85eee3929a1ccb5225f2e1d826a466e7351bbf39 (diff) |
Move reference operator to site next to variable, as per docs
Diffstat (limited to 'php.html.markdown')
-rw-r--r-- | php.html.markdown | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/php.html.markdown b/php.html.markdown index 6dcf7d59..57470390 100644 --- a/php.html.markdown +++ b/php.html.markdown @@ -114,7 +114,7 @@ echo function_result(); // Output the result of a function call that returns a v $a = 1; $b = 2; $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 |