In this recipe, we will see how to convert currencies using Ajax and PHP. In this example, we will use the API provided by foxrate.org. Forxrate.org has provided the web services in the XML-RPC format. We consumed an XML-RPC web service in this example.
Foxrate.org's currency convertor API is located at: http://foxrate.org/rpc/. The method name for the XML-RPC call is foxrate.currencyConvert. The parameters that can be passed to this function are: