previousXML_RSS::getChannelInfo (Previous) (Next) XML_RSS::getImagesnext

View this page in Last updated: Tue, 02 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

XML_RSS::getItems

XML_RSS::getItems – Get items from RSS file

Synopsis

require_once "XML/RSS.php";

array XML_RSS::getItems ( )

Description

Get items from RSS document. This function returns an array containing the set of items that are provided by the RSS document.

Return value

array - a two-dimensional array. Every inner array contains information about a site. Use the array key 'title' to get the article title and the key 'link' for the URL of the site.

Note

This function can not be called statically.

Example

Using getItems()

<?php
foreach ($r->getItems() as $value) {
    echo 
$value['title'] . ": " $value['link'] . "\n";
}
?>
previousXML_RSS::getChannelInfo (Previous) (Next) XML_RSS::getImagesnext

Download Documentation Last updated: Tue, 02 Jun 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.