Version: v0.7.1 - Beta.  We welcome contributors & feedback.

Object.zClone

zClone() -> object

Description

Make a copy of the object.

When an object is cloned, THT will perform a shallow copy of all of the object’s properties. Any properties that are references to other variables will remain references.

$o1 = MyObject()
$o2 = $o1.clone()