Get values of variables inside of a php array : <p>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.</p>

<p>Here is my current php code:</p>

<pre><code>$rc = get_data('https://xboxapi.com/v2/2535433396471499/friends');
$rc2 = json_decode($rc);
</code></pre>

<p>Here is what I get when it is printed in the browser:</p>

<pre><code>object(stdClass)#1 (13) {
["id"]=&gt;
int(2535472804586102)
["hostId"]=&gt;
NULL
["Gamertag"]=&gt;
string(11) "Unikornz119"
["GameDisplayName"]=&gt;
string(11) "Unikornz119"
["AppDisplayName"]=&gt;
string(11) "Unikornz119"
["Gamerscore"]=&gt;
int(3190)
["GameDisplayPicRaw"]=&gt;
string(5) "a.png"
["AppDisplayPicRaw"]=&gt;
string(180) "b.png"
["AccountTier"]=&gt;
string(4) "Gold"
["XboxOneRep"]=&gt;
string(10) "GoodPlayer"
["PreferredColor"]=&gt;
string(0) ""
["TenureLevel"]=&gt;
int(1)
["isSponsoredUser"]=&gt;
bool(false)
}
</code></pre>

<p>Thank you all, I hope to hear some positive responses! :)</p>
