<?php
require_once('class.forex.php');
$forex = new Forex();
$forex->convert( '1', 'USD', 'PHP' );
echo $forex->get('from') . ' ' . $forex->get('amount') . ' is equal to ' . $forex->get('to') . ' ' . $forex->get('converted') . ' as of ' . $forex->get('stamp') . '<br>';
echo "<xmp>";
print_r( $forex->getResultArray() );
echo "</xmp>";
?>
|