I'm very new to this and I need help. I have been searching and searching for days on end. My question is how to get it so my code I have here, returns just the values of one variable from inside the different object(stdClass)'s. Like I said I am very new and inexperienced with any sort of programming but I have self taught myself quite a bit.
Here is my current php code:
$rc = get_data('https://xboxapi.com/v2/2535433396471499/friends');
$rc2 = json_decode($rc);
Here is what I get when it is printed in the browser:
object(stdClass)#1 (13) {
["id"]=>
int(2535472804586102)
["hostId"]=>
NULL
["Gamertag"]=>
string(11) "Unikornz119"
["GameDisplayName"]=>
string(11) "Unikornz119"
["AppDisplayName"]=>
string(11) "Unikornz119"
["Gamerscore"]=>
int(3190)
["GameDisplayPicRaw"]=>
string(5) "a.png"
["AppDisplayPicRaw"]=>
string(180) "b.png"
["AccountTier"]=>
string(4) "Gold"
["XboxOneRep"]=>
string(10) "GoodPlayer"
["PreferredColor"]=>
string(0) ""
["TenureLevel"]=>
int(1)
["isSponsoredUser"]=>
bool(false)
}
Thank you all, I hope to hear some positive responses! :)