Weigh-in with your opinion! Let us know what you think. Goals for SimplePie 2.

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: 2007/06/23 18:45 (external edit)