Skip to content

Instantly share code, notes, and snippets.

print_r($description);
echo('<br />');
foreach($rss->channel->item as $item){
$title[] = (string)$item->title;
$link[] = (string)$item->link;
$description[] = (string)$item->description;
}
<div style="width:40%;margin: 0 auto 0 auto;background-color: cornflowerblue; border-radius: 4px;" onclick="obj=document.getElementById('open').style; obj.display=(obj.display=='none')?'block':'none';">
<a style="cursor:pointer;"><div style="color: black;">Read more</div></a>
</div>
<div id="open" style="display: none; clear: both;">
</div>