language/oop5/references.xml
a9edd62d087ab1eb6292c795b7256e14ff9f1234
...
...
@@ -3,15 +3,15 @@
3
3
<sect1 xml:id="language.oop5.references" xmlns="http://docbook.org/ns/docbook">
4
4
<title>Objects and references</title>
5
5
<para>
6
-
One of the key-points of PHP 5 OOP that is often mentioned is that
6
+
One of the key-points of PHP OOP that is often mentioned is that
7
7
"objects are passed by references by default". This is not completely true.
8
8
This section rectifies that general thought using some examples.
9
9
</para>
10
10

11
11
<para>
12
12
A PHP reference is an alias, which allows two different variables to write
13
-
to the same value. As of PHP 5, an object variable doesn't contain the object
14
-
itself as value anymore. It only contains an object identifier which allows
13
+
to the same value. In PHP, an object variable doesn't contain the object
14
+
itself as value. It only contains an object identifier which allows
15
15
object accessors to find the actual object. When an object is sent by
16
16
argument, returned or assigned to another variable, the different variables
17
17
are not aliases: they hold a copy of the identifier, which points to the same
18
18