note 105689 deleted from book.simplexml by danbrown
| From: | danbrown@php.net | Date: | Wed, 07 Sep 2011 15:42:01 +0000 |
| Subject: | note 105689 deleted from book.simplexml by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-183010@lists.php.net to get a copy of this message | ||
Note Submitter: webmaster at stylecharts dot de
----
rss/atom feed to array directly from a URL.
I combined the idea from soloman with the file_get_contents() function and put it in one line.
<?
$array = json_decode(json_encode(simplexml_load_string(file_get_contents("http://www.example.de/rss"))),TRUE);
?>