This class can be used to retrieve currency exchange rates from the National Bank of Romania (BNRO).
The class return the information as an array with 2 elements: date and currencies.
It accesses the BNRO site and retrieves a XML file with the exchange rates values between the Romanian currency and other currencies.
The class parses the results and returns an array with all the exchange rate values and the date to which the rates refer.
It provides different functions to parse and extract the results under PHP 4 and PHP5. |