I know this is covered in the php docs but I got confused with this issue .
From the php docs :
$instance = new SimpleClass(); $assigned = $ins
well, basically those variables are nothing but pointers to the memory space, where object resides. If you store pointer value in another pointer, and then reset original pointer, nothing will happen to the memory area they both once pointed to.