title: Print SimpleXMLElement object
body: <p>I have a SimpleXMLElement like this:</p>
  
  <pre><code>SimpleXMLElement Object ( [trailer] =&gt; SimpleXMLElement Object (
  [title] =&gt; This is the title
  [link] =&gt; http://example.com
  [trailer_id] =&gt; 60373
  [embed] =&gt; SimpleXMLElement Object ( ) ) )
  </code></pre>
  
  <p>I've google for two hours now, and couldn't find how to <strong>print the "trailer_id"</strong>.
  Could anybody point me in the right direction?</p>