php objects, how to access a simplexmlelement
<p>I have the following object:</p>

<pre><code>object(SimpleXMLElement)#337 (1) { [0]=&gt; string(4) "1001" }
</code></pre>

<p>But I can't seem to access it using [0] or even not using foreach($value as $obj=>$objvalue)</p>

<p>What am I doing wrong?</p>
