Location: PHPKode > scripts > BNR official rates > bnr-official-rates/example.php
<?php

require_once 'bnr.php';

$bnr = new Bnr;

/**
 * Get all available currencies
 */
echo '<pre>';
print_r($bnr->getCurrencies());
echo '<pre>';

echo '<hr />';

/**
 * Get a currency value
 */
echo $bnr->getCurrencyValue('USD');

echo '<hr />';

/**
 * Get a currency full name
 */
echo $bnr->getCurrencyName('USD');

echo '<hr />';

/**
 * Get all currencies names
 */
echo '<pre>';
print_r($bnr->getCurrencyName());
echo '<pre>';
Return current item: BNR official rates