help with accessing an array/object
<p>i have printed out the contents of an array/object (named 'document') with print_r. it looks like this:</p>

<pre><code>Array ( [0] =&gt; SimpleXMLElement Object ( [@attributes] =&gt; Array ( [id] =&gt; 7006276 ) [name] =&gt; Arnessysla [type] =&gt; region [latitude] =&gt; 64.5833 [longitude] =&gt; -21.8833 [entities] =&gt; SimpleXMLElement Object ( ) ) ) 
</code></pre>

<p>how do i get the 'entities' contents?</p>

<p>i've tried this: $document[0]->attributes['entities']</p>

<p>but it didnt work!</p>
