How to use:
<?php
// Create an instance for the class
$exchange = new currencyExchange("INR", 0); // INR is the basic currency code; 0 is the index of U.A.E. Dhiram (AED) in the parsed xml array
$rate = $exchange->getExchangeRate();
?>
For more target currency index check the xml file attached. AED with an index of 0 is the starting element. List ends with South African Rand (ZAR) with index as 47.
|