You are here: Documentation » API Reference » SimplePie_Enclosure » get_length()
Table of Contents
get_length()
Description
class SimplePie_Enclosure { get_length() }
Returns the file size of the enclosure in bytes.
Availability
- Available since SimplePie Beta 2.
Examples
$feed = new SimplePie(); $feed->set_feed_url('http://simplepie.org/blog/feed/'); $feed->init(); $feed->handle_content_type(); foreach ($feed->get_items() as $item) { if ($enclosure = $item->get_enclosure()) { echo $enclosure->get_length(); } }
See Also
reference/simplepie_enclosure/get_length.txt · Last modified: 2011/03/06 03:56 (external edit)