I'm using PHP and the YouTube API to get videos from YouTube to feed to my web app, but I don't know how to get the totalResults
entry
Here is my code:
$yt = new Zend_Gdata_YouTube();
$query = $yt->newVideoQuery();
$query->setQuery($searchTerm);
$query->setStartIndex($startIndex);
$query->setMaxResults($maxResults);
$feed = $yt->getVideoFeed($query);
echo $feed->totalResults; // this desn't work