correct syntax for cloning object in php code example Example: php clone object $objectB = clone $objectA;