diff --git a/language/references.xml b/language/references.xml index 786ddc8808..9402e11dbc 100644 --- a/language/references.xml +++ b/language/references.xml @@ -1,5 +1,5 @@ - + References Explained @@ -55,12 +55,14 @@ $foo =& find_var ($bar); - Unless you use the syntax above, the result of - $bar = new fooclass() will not be the same - variable as $this in the constructor, meaning - that if you have used reference to $this in - the constructor, you should use reference assignment, or you get - two different objects. + Not using the & operator causes a copy of + the object. If you use $this in the class + it will operate on the current instance of the class. The + assignment without & will copy the instance + (i.e. the object) and $this will operate on + the copy, which is not always favoured. Mostly you want to have + a single instance to work with, due to performace and memory + consumption issues.