diff --git a/language/oop5/cloning.xml b/language/oop5/cloning.xml index 7dcf9783ae..3a57376c6b 100644 --- a/language/oop5/cloning.xml +++ b/language/oop5/cloning.xml @@ -1,5 +1,5 @@ - + Object cloning @@ -32,9 +32,12 @@ $copy_of_object = clone $object; When an object is cloned, PHP 5 will perform a shallow copy of all of the object's properties. Any properties that are references to other variables, - will remain references. If a __clone() method is defined, then the newly - created object's __clone() method will be called, to allow any necessary - properties that need to be changed. + will remain references. + + + Once the cloning is complete, if a __clone() method is defined, then + the newly created object's __clone() method will be called, to allow any + necessary properties that need to be changed.