LoginSignup
0
0

More than 5 years have passed since last update.

jugemブログのRSSをPHPで表示させる

Last updated at Posted at 2017-08-25
<?php
//jugemブログのRSSをPHPで表示させる
$rss = simplexml_load_file('JUGEM RSSのURL');
foreach($rss as $item){
$date = date("Y/n/j", strtotime($item->issued));
if($item->title != ""){
echo <<< eof
<li>
<a href="{$item->link->attributes()->href}">{$item->title}</a>
<span style="font-size:10px;">{$date}</span>
</li>
eof;
}
}
?>
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0