Location: PHPKode > scripts > CurrencyExchange > currencyexchange/example.php
<?php

include("CurrencyConverter.php");

$exch = new CurrencyConverter();
$exch->fromTo("GBP", "USD");
$val = $exch->convert();

if (!$val){
    echo "Couldn't convert due to some internal error.<br />";// . nl2br($exch->getError()) . nl2br($exch->getDebug());
} else {
    echo "Result: USD ". round($val, 2);
}

?>

<a href="http://www.ecreate.co.uk">Code by eCreate.</a>
Return current item: CurrencyExchange