A tiny php function to get a atom/rss feed and create an array with all the content (less than 70 lines)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Array2feed.php
Feed2array.php
README.md
index.php

README.md

feed2array

A tiny php function to get a atom/rss feed and create an array with all the content (less than 70 lines)

$content=feed2array($feed,$load);

$feed is the feed's url (if $load=true) or the $feed content (if $load=false):

If you want to load the feed with your own function, use $load=false and put the loaded content in $feed, like below.

$txtcontent=my_own_file_get_contents('url'); $content=feed2array($txtcontent,false);

But you can simply put the following line: $content=feed2array('url');

Enjoy !