array XML_RSS::getItems (
)
Get items from RSS document. This function returns an array containing the set of items that are provided by the RSS document.
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.
This function can not be called statically.
Using getItems()
<?php
foreach ($r->getItems() as $value) {
echo $value['title'] . ": " . $value['link'] . "\n";
}
?>