Well, for example, there is a class:
class A { public $value = 100; } And there is a variable with an object instance:
$obj = new A; As far as I heard that the variable is stored not quite an object but some kind of ID? For example, the following code:
$cop = $obj; $ref = &$obj; $obj->value = 1; echo $obj->value," ",$cop->value," ",$ref->value,"\n"; /// 1 1 1 $obj = NULL; var_dump($obj,$cop,$ref); /// NULL object(A)#1 NULL Explain in the same way that it is stored in a variable which assigns an "object".