Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 37199 программистов и 1724 робота. Сейчас ищут 992 программиста ...
XML_RSS::getItems
Вернуться к: XML_RSS
XML_RSS::getItems
XML_RSS::getItems – Get items from RSS file
Synopsis
require_once "XML/RSS.php";
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.
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";
}
?>
Вернуться к: XML_RSS