mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Move reference operator to site next to variable, as per docs
This commit is contained in:
parent
85eee3929a
commit
34852cc8be
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user