我有下面提到的编码。我想从这个数组中获取 response_text 和 response_code 的值。任何人都可以帮助我如何获取特定的键值。
stdClass Object
(
[_OPS_version] => 0.9
[protocol] => XCP
[request_response_time] => 0.441
[response_text] => Command completed successfully
[is_search_completed] => 1
[action] => REPLY
[attributes] => stdClass Object
(
[suggestion] => stdClass Object
(
[count] => 0
[response_text] => Missing tld list, supported tlds are [.com,.net,.org,.info,.biz,.us,.mobi]
[response_code] => 500
[is_success] => 0
)
)
[response_code] => 200
[is_success] => 1
)
提前致谢