Parse error: parse error, unexpected T_OBJECT_OPERATOR, expecting ')'
<p>Can some please help me, trying to fix this error for a few hours now and dont seem to know how to</p>

<p>Parse error: parse error, unexpected T_OBJECT_OPERATOR, expecting ')'</p>

<pre><code>oreach ($doc-&gt;getElementsByTagName('item') as $node) {

    if  ($counter &lt;= $limit)
    {
    $items = array ('title' =&gt; $node-&gt;getElementsByTagName('title')-&gt;item(0)-&gt;nodeValue,'link' =&gt; $node-&gt;getElementsByTagName('link')-&gt;item(0)-&gt;nodeValue,'description' =&gt; $node-&gt;getElementsByTagName('description')-&gt;item(0)-&gt;nodeValue,'pubDate' =&gt; $node-&gt;getElementsByTagName('pubDate')-&gt;item(0)-&gt;nodeValue);
    array_push($feeds, $items);
    }
    $counter++;
}
        echo '
            &lt;ul id="facebook"&gt;';

                foreach ($feeds as $feed)
                    {
                        $date = strtotime($feed['pubDate']);

                            echo '
                            &lt;li&gt;';
                            echo '&lt;div class="blog_box"&gt;
                                            &lt;div class="grid_2"&gt;
                                &lt;h4&gt;'. date('jS F Y G:H' ,$date) .'&lt;/h4&gt;

                            &lt;/div&gt;
                        &lt;div class="grid_6"&gt;
                            &lt;h1&gt;&lt;a href="'. $feed['link'] .'" title="'.$feed['title'].'"&gt;'.$feed['title'].'&lt;/a&gt;&lt;/h1&gt;
                            &lt;p&gt;'.$feed['description'].'&lt;/p&gt;
                        &lt;/div&gt;
                        &lt;div align="right"&gt;
                        &lt;a href="'. $feed['link'] .'" class="button minimal small" title="News link"&gt;Read More&lt;/a&gt;
                        &lt;/div&gt;
                        &lt;div class="clearnospacing"&gt;&lt;/div&gt;                              
                &lt;/div&gt;                       
                        ';
                            echo '&lt;/li&gt;
                    ';
                }

            echo '&lt;/ul&gt;
        ';
</code></pre>

<p>The error that im getting is</p>

<pre><code>$items = array ('title' =&gt; $node-&gt;getElementsByTagName('title')-&gt;item(0)-&gt;nodeValue,'link' =&gt; $node-&gt;getElementsByTagName('link')-&gt;item(0)-&gt;nodeValue,'description' =&gt; $node-&gt;getElementsByTagName('description')-&gt;item(0)-&gt;nodeValue,'pubDate' =&gt; $node-&gt;getElementsByTagName('pubDate')-&gt;item(0)-&gt;nodeValue);
</code></pre>
