I am looking for the development of a PHP function that will retrieve the current exchange rate between two currencies based on ISO 3166 codes. Resulting rate should be rounded to two decimal places and saved to a $_SESSION variable.
I already have some code as follows: