<?
// include the class
include_once('HebCurrency.php');
// English by default
$currenices = new HebCurrency();
// get USD currency
$dollars = $currenices -> getCurrency('USD');
print_r($dollars);
// covert 500 NIS to dollars
echo $currenices -> convertTo('USD', 500) . '<br />';
// covert 1000 EUR to NIS
echo $currenices -> convertFrom('EUR', 887) . '<br />';
// Hebrew names will replace English names
$currenices = new HebCurrency('he');
// get USD currency
$dollars = $currenices -> getCurrency('USD');
print_r($dollars);
?>
|