How to access numeric property of an object
<p>I have this object:</p>

<pre><code> stdClass Object ( 
    [0] =&gt; stdClass Object ( 
         [type] =&gt; A 
         [quantity] =&gt; 30 
    )
    [1] =&gt; stdClass Object ( 
         [type] =&gt; P 
         [quantity] =&gt; 129
    ) 
 ) 
</code></pre>

<p>However, I cannot access the sub-objects (e.g., <code>$Data-&gt;0-&gt;quantity</code>) because numeric properties of objects are not accessible in PHP.</p>

<p>How can I access the sub-objects without resorting to looping?</p>
