Just happened to assemble this script hack recently, out of the requirement for a quick’n'dirty feed parsing feature:
$feed_contents = file_get_contents($feed_url);
$xml = simplexml_load_string($feed_contents, LIBXML_NOCDATA);
$feed_array = json_decode(json_encode($xml));
print_r($feed_array); // Surprise!!Now this evidently is not SimplePie or Magpie RSS or whatever feed reader library tickles your fancy
(more…)
