SimplePie 1.3.1 is now available. Upgrade now!

SimplePie Documentation.  Learn how to use this thing.  It's way better than going to school.

You are here: Documentation » API Reference » SimplePie_Item » get_description()

get_description()

Description

class SimplePie_Item {
	get_description ()
}

Returns the description for the item. Prefers summaries over full content, but will return full content if a summary does not exist. To prefer full content instead, use get_content().

Availability

  • Available since SimplePie 0.8.

Examples

Display the description

$feed = new SimplePie();
$feed->set_feed_url('http://simplepie.org/blog/feed/');
$feed->init();
$feed->handle_content_type();
 
foreach ($feed->get_items() as $item)
{
	echo $item->get_description();
}

See Also


reference/simplepie_item/get_description.txt · Last modified: 2011/03/05 19:56 (external edit)