- simplexml_load_file: documentation ( source)
<?php
// set feed URL
$url = 'http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.xchange%20where%20pair%20in%20(%22INRUSD%22)&diagnostics=true&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys';
// read feed into SimpleXML object
$sxml = simplexml_load_file($url);
echo $sxml;
?>