title: get the value of simplexmlelement object php
body: <p>I try too many thing to read the value of the [label] from the code below :</p>
  
  <pre><code>    Array ( [0] =&gt; 
      SimpleXMLElement Object
      (
         [id] =&gt; x 
         [published] =&gt; 2011
         [category] =&gt;
       Array ( [0] =&gt; 
        SimpleXMLElement Object 
        ( 
        [@attributes] =&gt; 
          Array (
          [scheme] =&gt; y 
          [term] =&gt; t 
          ) )
          [1] =&gt; SimpleXMLElement Object 
          ( [@attributes] =&gt; 
          Array (
          [scheme] =&gt; y2 
          [term] =&gt; Film
          [label] =&gt; Film &amp; Animation 
          ) )
  </code></pre>
  
  <p>it start with numeric array.</p>