Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/xxxx/public_html/sub-domain/templates/xxxxx/index.php on line 66
<p>I'm facing above problem. The piece of code is given below:</p>

<pre><code>&lt;?php 
            foreach ($feed as $entry) {
                $videoId = $entry-&gt;getVideoId();
                $thumbnailUrl = $entry-&gt;medx-MoBiLeroup-&gt;thumbnail[0]-&gt;url;

                $videoTitle = $entry-&gt;medx-MoBiLeroup-&gt;title;

                $viewCount = $entry-&gt;statistics-&gt;viewCount;

                $authorUsername = $entry-&gt;author[0]-&gt;name;

                $videoDescription = $entry-&gt;medx-MoBiLeroup-&gt;description;

                $videoRating = $entry-&gt;rating-&gt;average;

                $duration = $entry-&gt;medx-MoBiLeroup-&gt;duration-&gt;seconds;

                $videoTitle2 = substr($videoTitle, 0, 40);

                $newtitle = ucwords(str_replace($string, $replace, $videoTitle));


                //$desc = htmlspecialchars(wordwrap(substr($videoDescription, 0, 100) . '...', 30, ' ', 1));


enter code here
</code></pre>
