PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
select version() as Version;
Copy Clear
Copy Format Clear
<?php $rss_link="https://rus.postimees.ee/rss"; $content=file_get_contents($rss_link); $xml=new SimpleXMLElement($content); foreach($xml->channel->item as $v){ $arr[]=[ 'title'=>(string)$v->title, 'descr'=>(string)$v->description, 'date'=>(string),mktime(1, 2, 3, 4, 5, 2006)),$v->pubDate, ]; } print_r($arr);
Show:  
Copy Clear