This was just way too simple and I had to share. (or keep it for later use.) <ul><?php $post = new SimpleXMLElement(‘XXX_URL_HERE_XXX’,NULL,TRUE); for ($i=0; $i<5; $i++) { print(‘<li><a href=”‘. $post->channel->item[$i]->link . ‘”>’ . $post->channel->item[$i]->title . ‘</a></li>’); } ?></ul> Link to SimpleXMLElement page on php.net. For trouble shooting, try var_dump($post->channel); etc. (Disclaimer: I will not be [...]
- Welcome to Daigo’s Daily Digital Diorama. I blog about... whatever that comes to my mind.
Change color
Archives
Calendar
Categories
