stdClass array/string ?
Hoe kan ik deze gegeven omzetten en bijv. met while weergeven?
Ik wil graag bij "[duration] => 4226.786" in een variable $duration=4226.786;
Dit zodat ik leuke dingen met echo en html kan maken.
Ik hoop echt dat iemand mij kan helpen
print_r($rkFitnessActivityFeed); Geeft:
stdClass Object
(
[items] => Array
(
[0] => stdClass Object
(
[duration] => 4226.786
[total_distance] => 13110.0878775
[start_time] => Sun, 1 Apr 2012 19:08:30
[type] => Running
[uri] => /fitnessActivities/78968781
)
[1] => stdClass Object
(
[duration] => 7200
[total_distance] => 2000
[start_time] => Sun, 1 Apr 2012 14:09:00
[type] => Swimming
[uri] => /fitnessActivities/78993650
)
[2] => stdClass Object
(
[duration] => 3900
[total_distance] => 2500
[start_time] => Sat, 31 Mar 2012 22:10:00
[type] => Swimming
[uri] => /fitnessActivities/78993974
)
[3] => stdClass Object
(
[duration] => 3600
[total_distance] => 2000
[start_time] => Fri, 30 Mar 2012 23:13:00
[type] => Swimming
[uri] => /fitnessActivities/78994172
)
)
[next] => /fitnessActivities?page=1&pageSize=25&noEarlierThan=1970-01-01&noLaterThan=2012-04-04&modifiedNoEarlierThan=1970-01-01&modifiedNoLaterThan=2012-04-04
=> 197
)
Ik moest alleen nog $rkFitnessActivityFeed wijzigen in $rkFitnessActivityFeed->items.
Zonder deze hulp was het nooit gelukt.
Bedankt Ozzie PHP!'
Voor de volledigheid: