Title: php read RSS
Last modified: August 19, 2016

---

# php read RSS

 *  [sollers](https://wordpress.org/support/users/sollers/)
 * (@sollers)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/php-read-rss/)
 *     ```
       <?php
   
       	$doc = new DOMDocument();
       	$doc->load('http://www.softarea51.com/rss/windows/Web_Development/XML_CSS_Utilities.xml');
       	$arrFeeds = array();
       	foreach ($doc->getElementsByTagName('item') as $node) {
       		$itemRSS = array (
       			'title' => $node->getElementsByTagName('title')->item(0)->nodeValue,
       			'desc' => $node->getElementsByTagName('description')->item(0)->nodeValue,
       			'link' => $node->getElementsByTagName('link')->item(0)->nodeValue,
       			'date' => $node->getElementsByTagName('pubDate')->item(0)->nodeValue
       			);
       		array_push($arrFeeds, $itemRSS);
       	}
   
       ?>
       ```
   
 * How do I call separate item?
 * I tried with this, but didn’t work.
 *     ```
       <?php
       echo $arrFeeds['title'];
       ?>
       ```
   
 * Thank you for ideas!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [sollers](https://wordpress.org/support/users/sollers/)
 * (@sollers)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/php-read-rss/#post-1470144)
 * Any idea?
 * Thank you!
 *  Thread Starter [sollers](https://wordpress.org/support/users/sollers/)
 * (@sollers)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/php-read-rss/#post-1470245)
 * Anyone?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘php read RSS’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [sollers](https://wordpress.org/support/users/sollers/)
 * Last activity: [16 years, 1 month ago](https://wordpress.org/support/topic/php-read-rss/#post-1470245)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
