I would like to be able to do the following:
$obj = new stdClass; $obj->status = \"success\"; $obj2 = new stdClass; $obj2->message = \"OK\";
if the object is the instance of stdClass (that's in your case) you can simply extend your object like...
$obj = new stdClass; $obj->status = "success"; $obj2 = new stdClass; $obj2->message = "OK"; $obj->message = $message; $obj->subject = $subject;
.... and as many as you wish.