Function deepCopy
make a deep copy of a object instead of a shallow copy
for a shallow copy of the object use the final keyword "clone"
the advantage of a deep copy is that A and B do not depend on each other, but at the cost of a slower more expensive copy
Located at
tools.lib.php
Parameters summary
object |
$obj |
Return value summary
object
|
object |