title: php json object reading
body: <p>I have a web page written in php where i get some info about the user from his linked in profile, thanks to linked in API. It gives me the following json object. with :</p>
  
  <pre><code>$user = json_decode($response);
  </code></pre>
  
  <p>method i decode the following json object into $user object.</p>
  
  <pre><code>{ "firstName": "Tolga", "lastName": "Evcimen", "skills": { "_total": 2, "values": [ { "id": 1, "skill": {"name": "Microsoft Office"} }, { "id": 2, "skill": {"name": "Microsoft Excel"} } ] } }
  </code></pre>
  
  <p>what i can't is to work with these values, my php knowledge is a little low, that's why i don't know how to read skills or anything else. The only thing I could read so far is :</p>
  
  <pre><code>$user-&gt;firstName , $user-&gt;lastName
  </code></pre>
  
  <p>but I can't get the rest with same approach :(</p>
  
  <pre><code>$user-&gt;skills-&gt;values[1]-&gt;skill-&gt;name, or $user-&gt;skills-&gt;_total
  </code></pre>
  
  <p>please give me some information about these things</p>