From 34852cc8be15e4ba643001dac8c0c0ca1ac48dca Mon Sep 17 00:00:00 2001 From: Malcolm Fell Date: Fri, 28 Jun 2013 08:56:52 +1200 Subject: Move reference operator to site next to variable, as per docs --- php.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3