php clone method code example Example: php clone //Copies an existing object $objectA = clone $objectB;