如何从PHP对象数组访问数据

时间:2015-12-30 20:55:29

标签: php arrays object fitbit temboo

我将此对象数组作为来自temboo fitbit api的响应。这是print_r($result)输出:

Fitbit_Statistics_GetTimeSeriesByDateRange_Results Object ( [outputArray:protected] => Array ( [Response] => {"activities-log-steps":[{"dateTime":"2015-12-30","value":"129"}]} ) [lowercaseKeyMap:protected] => Array ( [response] => Response ) )

如何访问此对象的value属性?

2 个答案:

答案 0 :(得分:1)

我发现temboo有方法可以访问结果:

getTimeSeriesByDateRangeResults->getResponse()

答案 1 :(得分:0)