- json_decode: documentation ( source)
- simplexml_load_string: documentation ( source)
- print_r: documentation ( source)
- implode: documentation ( source)
- file: documentation ( source)
- json_encode: documentation ( source)
<?php
$feed = implode(file('http://www.mybank4.com/blog/category/running-your-business/feed/?orderby=rand'));
//echo BLOG_PATH.'category/running-your-business/feed/?orderby=rand';die;
//echo $feed; die;
$xml = simplexml_load_string($feed);
$json = json_encode($xml);
$array = json_decode($json,TRUE);
echo "<pre>",print_r($array);die;