How to access data from PHP object array

82 views Asked by At

I'm getting this object array as a response from the temboo fitbit api. This is the print_r($result) output:

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

How do I access the value attribute of this object?

2

There are 2 answers

1
user2570937 On

I found that temboo has methods to access the results:

getTimeSeriesByDateRangeResults->getResponse()
0
E_p On