Translations:Developers/Object oriented programming in PHP/Objects/8/en

Due to this, you can still modify the internal state of the object by calling it's public methods even after a reference of the object was already handed over to another object. This can be very efficient but also very dangerous, so it must be handled with care, because it can lead to errors which are hard to find. To actually copy an object in order to get a second object with the same property values the clone keyword must be used: