PHP 获取指定值
用print_r($response);打印出来的值如下{"out_trade_no":"永康药店-2015-06-2806:39:34","scene":"bar_co...
用 print_r($response); 打印出来的值如下
{"out_trade_no":"永康药店-2015-06-28 06:39:34","scene":"bar_code","auth_code":"285115153786148011","total_amount":"0.1","discountable_amount":"0.00","subject":"66666","body":"test","goods_detail":[{"goods_id":"apple-01","goods_name":"ipad","goods_category":"7788230","price":"88.00","quantity":"1"},{"goods_id":"apple-02","goods_name":"iphone","goods_category":"7788231","price":"88.00","quantity":"1"}],"operator_id":"op001","store_id":"pudong001","terminal_id":"t_001","time_expire":"2015-06-28 07:39:59"}stdClass Object
(
[alipay_trade_pay_response] => stdClass Object
(
[code] => 10000
[msg] => Success
[buyer_logon_id] => 138***@139.com
[buyer_pay_amount] => 0.10
[fund_bill_list] => Array
(
[0] => stdClass Object
(
[amount] => 0.10
[fund_channel] => ALIPAYACCOUNT
)
)
[gmt_payment] => 2015-06-28 06:40:01
[invoice_amount] => 0.10
[open_id] => 20880015676558176810488630510137
[out_trade_no] => 永康药店-2015-06-28 06:39:34
[point_amount] => 0.00
[receipt_amount] => 0.10
[total_amount] => 0.10
[trade_no] => 2015062821001004370014382662
)
[sign] => cLQVfkZugJkDrVqA13iXEeI1B1g8oLZ4aeRW4CPeWSt84x/35LkP3nxjMzTH6zf8lZVXxhgZSQRQzoskJRvK5D/OXupIxshzAMypEZC/lGrT+2PmerigyvWEEigD87wraHFOYuWRWepFcWQcr3AktQHTRE0g+edbjm4U9T9WcvI=
)
用什么 方法 获取 [code] 的值 展开
{"out_trade_no":"永康药店-2015-06-28 06:39:34","scene":"bar_code","auth_code":"285115153786148011","total_amount":"0.1","discountable_amount":"0.00","subject":"66666","body":"test","goods_detail":[{"goods_id":"apple-01","goods_name":"ipad","goods_category":"7788230","price":"88.00","quantity":"1"},{"goods_id":"apple-02","goods_name":"iphone","goods_category":"7788231","price":"88.00","quantity":"1"}],"operator_id":"op001","store_id":"pudong001","terminal_id":"t_001","time_expire":"2015-06-28 07:39:59"}stdClass Object
(
[alipay_trade_pay_response] => stdClass Object
(
[code] => 10000
[msg] => Success
[buyer_logon_id] => 138***@139.com
[buyer_pay_amount] => 0.10
[fund_bill_list] => Array
(
[0] => stdClass Object
(
[amount] => 0.10
[fund_channel] => ALIPAYACCOUNT
)
)
[gmt_payment] => 2015-06-28 06:40:01
[invoice_amount] => 0.10
[open_id] => 20880015676558176810488630510137
[out_trade_no] => 永康药店-2015-06-28 06:39:34
[point_amount] => 0.00
[receipt_amount] => 0.10
[total_amount] => 0.10
[trade_no] => 2015062821001004370014382662
)
[sign] => cLQVfkZugJkDrVqA13iXEeI1B1g8oLZ4aeRW4CPeWSt84x/35LkP3nxjMzTH6zf8lZVXxhgZSQRQzoskJRvK5D/OXupIxshzAMypEZC/lGrT+2PmerigyvWEEigD87wraHFOYuWRWepFcWQcr3AktQHTRE0g+edbjm4U9T9WcvI=
)
用什么 方法 获取 [code] 的值 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询