Code Sample: Convert one Currency to another
As already mentioned, format in which currency exchange rates are returned by most providers is JSON. If you know how, it's pretty easy to parse using e.g. PHP cURL or jQuery.ajax. We'll give you an idea about how you can get up and running converting any values from one currency to another.
In order to keep this as simple as possible, this code example is also based on the currencylayer API: