Location: PHPKode > scripts > Simple PHP Currency Exchanger > simple-php-currency-exchanger/example.php
<?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();

?>
Return current item: Simple PHP Currency Exchanger