function getNews()
{
$bloggerDataStr = file_get_contents("http://www.blogger.com/feeds/3018390933290471377/posts/default/-/comp?alt=json");
$bloggerDataArr = json_decode($bloggerDataStr);
$html .= '<ul>';
foreach($bloggerDataArr->feed->entry as $entry)
{
$html .= '<li>';
$html .= '<h1>'.$entry->title->$t.'</h1>';
$html .= '<time>'.$entry->published->$t.'</time>';
$html .= '<section>'.$entry->content->$t.'</section>';
$html .= '</li>';
}
$html .= '</ul>';
return $html;
}
I get "Fatal error: Cannot access empty property" in:
$entry->title->$t.
I believe my code is correct, I don't understand what is wrong. Help? Thanks