SimpleXMLElement access Array
<p>Simple question but it's really causing me problems!</p>

<p>I have a var dump as follows; how do I access the array <code>["slot_id"]</code> and get it as an actual array? I've tried <code>$object-&gt;slot_id</code>, <code>$object['slot_id']</code> and <code>$object[0]</code> with no success. I think I'm just missing something ^_^</p>

<pre><code>object(SimpleXMLElement)#17 (1) {
  ["slot_id"]=&gt;
  array(143) {
    [0]=&gt;
    string(2) "41"
    [1]=&gt;
    string(2) "42"
    [2]=&gt;
    string(2) "43"
    ....
</code></pre>
