我如何从我的返回对象得到[response_data:protected],我尝试了一些对象到数组的转换


how do i get the [response_data:protected] from my return object , i tried some object to array conversion

这里我的返回对象如下

 QuickPay'API'Response Object
 (
    [response_data:protected] => {"id":35979283,"merchant_id":20944,"order_id":"14752117819630","accepted":false,"type":"Payment","text_on_statement":null,"branding_id":null,"variables":{},"currency":"DKK","state":"initial","metadata":{"type":null,"origin":null,"brand":null,"bin":null,"last4":null,"exp_month":null,"exp_year":null,"country":null,"is_3d_secure":null,"hash":null,"number":null,"customer_ip":null,"customer_country":null,"fraud_suspected":false,"fraud_remarks":[],"nin_number":null,"nin_country_code":null,"nin_gender":null},"link":null,"shipping_address":null,"invoice_address":{"name":"Vivek U","att":null,"street":null,"city":null,"zip_code":null,"region":null,"country_code":null,"vat_no":null,"house_number":null,"house_extension":null,"phone_number":"12345","mobile_number":"12345","email":"amit.chauhan@dignizant.com"},"basket":[],"shipping":null,"operations":[],"test_mode":false,"acquirer":null,"facilitator":null,"created_at":"2016-09-30T05:02:57Z","balance":0,"fee":null}
 )

请帮忙,我将感激不尽

试试这个,print_r($payments->asArray());