Wednesday , 26 July 2017
Home » PHP » Read/Parse RSS Feed using PHP
Read/Parse RSS Feed using PHP

Read/Parse RSS Feed using PHP

Hello Friends,

Its very easy to read rss feed with php. Are you looking to read/parse rss feed using PHP ? If yes than you are at right place and you can understand the code very very easily. Even begineer with PHP can implement this and understand this code. Just copy and paste below code and call this function by passing your feed url.

function read_feed($feed_url) {  
    $feed_content = file_get_contents($feed_url);  
    $xml_data = new SimpleXmlElement($feed_content);  
    echo "<ul>";  
    foreach($xml_data->channel->item as $single_entry) {  
        echo "<li><a href='$single_entry->link'>" . $single_entry->title . "</a></li>";  
    echo "</ul>";  

Isn’t it easy to parse rss feed using php, read xml file using php, parse xml using php, read rss feed using php, php function for rss feed, rss feed php function.

Plugin by: PHP Freelancer

About Rakshit Patel

I am PHP Freelancer, Rakshit Patel working as PHP Programmer India. I have developed this site to share my knowledge, thoughts and experience during the development of projects. We are group of developers working together. If you want to hire us for any PHP related work, you can reach me via Email, Phone or Chat.

Leave a Reply

Your email address will not be published. Required fields are marked *


Notify me of followup comments via e-mail. You can also subscribe without commenting.