php clone copy object without reference code example Example: php clone object $objectB = clone $objectA;