demo
Here, we are going to build a simple currency converter which is based on PHP as well as we are going to use the simplexml_load_file function and DOMXML to fetch data from a daily exchange rate feed , for our purposes the RSS (XML) feed from the ECB site proved adequate , because its updated daily and it comes from a reputable source .