Re: PHP class class Usage Summary
, object clone:
when cloned an object's instance, the initial value of its attribute inherits the current value of the cloned object.
class test
{
public $p=5;
function __clone () {/ / only play a role in the occurrence of clones. Used to change some values
$this- at the time of cloning