I would like to be able to do the following:
$obj = new stdClass; $obj->status = \"success\"; $obj2 = new stdClass; $obj2->message = \"OK\";
have a look at object cloning http://php.net/manual/en/language.oop5.cloning.php