This doesn't copy state:
$myNewObject = $myOldObject;
This does, but it doesn't copy:
$myNewObject = & $myOldObject;
If I want two objects with the same state, what do I do?
$myNewObject = $myOldObject;
This does, but it doesn't copy:
$myNewObject = & $myOldObject;
If I want two objects with the same state, what do I do?
Comment