Location: PHPKode > scripts > Money Currency > money-currency/example.php
<?php
	// Assuming that the class is included

	$api = new MoneyAPI;

	$from = 'USD';
	$want = 'GBP';
	$total = 200;

	$stream = $api->open() or die('Unable to locate stream!');
	$result = $api->convert($stream, $from, $want, $total, false, 4);

	echo($result);
?>
Return current item: Money Currency