When encounter access problem to an object’s property, you can
- Transfer object to array
$obj_arr=$obj->toArray();
- Access the member
$Status = (!empty($obj_arr['Status'])) ? trim($obj_arr['Status']) : null;
- If json_encode a non-empty object yields an empty array, do this:
json_encode($obj->toArray())