返回数组对象php,PHP返回数组内的对象变量

我正在编写一个PHP脚本来处理一些JSON数据。以下是一个(删节)var_dump($data)。我想返回与["[question(13), option(0)]"]相关的值20,我不知道如何去做。我试过了$data->[question(13), option(0)]和$data->question(13)。 (我试图查看这个,但我不确定符号的含义,所以我不确定我在找什么)

object(stdClass)#133 (36) {

["id"]=>

string(1) "1"

["contact_id"]=>

string(0) ""

["status"]=>

string(8) "Complete"

["is_test_data"]=>

string(1) "0"

["datesubmitted"]=>

string(19) "2012-04-19 17:11:00"

["[question(5)]"]=>

string(11) "C. 40%, 40%"

["[question(9)]"]=>

string(47) "D. EBITDA and Free cash flow are the same thing"

["[question(10)]"]=>

string(48) "A. Accounts Payable as % of sales would increase"

["[question(11)]"]=>

string(20) "E. None of the above"

["[question(12)]"]=>

string(97) "A. A larger portion of initial investment is equity which can increase exit return potential."

["[question(13), option(0)]"]=>

string(2) "20"

["[url("embed")]"]=>

string(0) ""

["[variable("STANDARD_IP")]"]=>

string(13) "38.107.74.230"

["[variable("STANDARD_LONG")]"]=>

string(10) "-73.976303"

["[variable("STANDARD_LAT")]"]=>

string(9) "40.761902"

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值