PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $url="https://rus.postimees.ee/rss"; $xmlstring=file_get_contents($url); $xml = simplexml_load_string($xmlstring); $json = json_encode($xml); $array = json_decode($json,TRUE); $news=$array['channel']['item']; for($i=1;$i<=25;$i++){ echo$i."\n"; } foreach($news as $n){ echo $n ['title']."\n"; }
Show:  
Copy Clear