How i can access an object in php
<p>Please see object array which i print here:</p>

<p>SimpleXMLElement Object
(
    [@attributes] => Array
        (
            [generator-info-name] => www.ontv.dk/xmltv
        )</p>

<pre><code>[channel] =&gt; Array
    (
        [0] =&gt; SimpleXMLElement Object
            (
                [@attributes] =&gt; Array
                    (
                        [id] =&gt; www.ontv.dk/tv/1
                    )

                [display-name] =&gt; DR1 DK
            )
</code></pre>

<p>)</p>

<p>How I can access channel-->display-name</p>

<p>Below code is not working:</p>

<p>echo $obj->channel[0]->display-name;</p>

<p>Help me please</p>

<p>Regards</p>
