title: Get a specific value in JSON
body: <p>I'm wondering how do i access the 3rd <code>"value"</code> using PHP in the following:</p>
  
  <pre><code>   "data": [
        {
           "id": "-",
           "name": "-",
           "period": "-",
           "values": [
              {
                 "value": 0,
                 "end_time": "2011-10-08T07:00:00+0000"
              },
              {
                 "value": 0,
                 "end_time": "2011-10-09T07:00:00+0000"
              },
              {
                 "value": 0,
                 "end_time": "2011-10-10T07:00:00+0000"
              }
           ]
  </code></pre>
  
  <p>As for now I'm trying to do something with:</p>
  
  <pre><code>$results = json_decode(curl_exec ($curl));
  </code></pre>
  
  <p>But then I'm stuck because there are 3 <code>"value"</code> inside of <code>"values"</code> and to tell you the truth I'm pretty confused..</p>