title: Get a PHP object property that is a number
body: <p>I'm trying to get a property from JSON data decoded into a PHP object. It's just a YouTube data API request that returns a video object that has a content object liks so;</p>
  
  <pre><code>[content] =&gt; stdClass Object
                  (
                      [5] =&gt; https://www.youtube.com/v/r4ihwfQipfo?version=3&amp;f=videos&amp;app=youtube_gdata
                      [1] =&gt; rtsp://v4.cache7.c.youtube.com/CiILENy73wIaGQn6pSL0waGIrxMYDSANFEgGUgZ2aWRlb3MM/0/0/0/video.3gp
                      [6] =&gt; rtsp://v6.cache3.c.youtube.com/CiILENy73wIaGQn6pSL0waGIrxMYESARFEgGUgZ2aWRlb3MM/0/0/0/video.3gp
                  )
  </code></pre>
  
  <p>Doing</p>
  
  <pre><code>$object-&gt;content-&gt;5
  </code></pre>
  
  <p>Throws "unexpected T_DNUMBER" - which makes perfect sense. But how do I get the value of a property that is a number?</p>
  
  <p>I'm sure I should know this. Thanks in advance.</p>