Hi all, my question in simple, if I have this array:
[php]Array
(
[0]=> stdClass Object
(
[user] => stdClass Object
(
[id] => 1374605922846447
[name] => Harrylollo Baosky
)
[score] => 76102
[application] => stdClass Object
(
[name] => EatSquare
[namespace] => eatsquare
[id] => 760699587345565
)
)
[1] => stdClass Object
(
[user] => stdClass Object
(
[id] => 1382836682021405
[name] => Luca Rosenthalstein
)
[score] => 35297
[application] => stdClass Object
(
[name] => EatSquare
[namespace] => eatsquare
[id] => 760699587345565
)
)
)[/php]
and we have 2 user or more… If I want to get just one score from a specific ID, like:
where the ID is = 760699587345565, get a value score from that id.
I try to make the script myself (I didn’t find any example)
[php]
$results = $requestScore ->asArray();
if ( $result->user->id == $me->getProperty(‘id’)) {
$mypersonalscore=$result->score;
}
[/php]
and this one sometime works…and sometimes doesn’t work ??? the “$me->getProperty(‘id’)” is already loaded…I don’t know wy…
and I try to make another one, but this doesn’t works…but get an error
[php]$mypersonalscore=$results->user->$me->getProperty(‘id’)->score;[/php]
someone has some solution? I try myself but I failed ???
thank you very much