てくのろーぐ

新卒エンジニアの日常ログ

PHP

PHPからRSSを取得する

仕事で必要になって調べたのですが、 $rss = simplexml_load_file('http://localhost:8888/tech/feed'); $item = $rss->channel->item; $title = $item[$counter]->title; $date = date('Y.m.d', strtotime($item[$counter]->pubDate)); $link = $item->link…