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 » get_language()

get_language()

Description

class SimplePie {
	get_language ()
}

Returns the language for the feed.

Availability

  • Available since SimplePie 1.0.
  • Previously existed as get_feed_language() since SimplePie 0.8.

Examples

Display the language

$feed = new SimplePie();
$feed->set_feed_url('http://simplepie.org/blog/feed/');
$feed->init();
$feed->handle_content_type();
 
echo $feed->get_language();

See Also


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