You are here: Documentation » API Reference » SimplePie » set_item_limit()
Table of Contents
set_item_limit()
Description
class SimplePie {
set_item_limit ( [int $limit = 0] )
}
Set the maximum number of items to return per feed with Multifeeds.
Availability
- Available since SimplePie 1.1.
Parameters
limit
The maximum number of items.
Examples
Set the max number of items per feed to return with Multifeeds
$feed = new SimplePie(); $feed->set_feed_url(array('http://simplepie.org/blog/feed/', 'http://images.apple.com/main/rss/hotnews/hotnews.rss')); $feed->set_item_limit(5); $feed->init(); $feed->handle_content_type(); echo $feed->get_title();
See Also
reference/simplepie/set_item_limit.txt · Last modified: 2008/01/03 12:19 by admin

