Skip to content

Instantly share code, notes, and snippets.

@wowo
Last active February 25, 2019 20:04
Show Gist options
  • Save wowo/b34ec3985437c2f3d09a7f3e4eb1cdc5 to your computer and use it in GitHub Desktop.
Save wowo/b34ec3985437c2f3d09a7f3e4eb1cdc5 to your computer and use it in GitHub Desktop.
$poundToEuro = (float) simplexml_load_file('https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml')->xpath("//*[@currency='GBP']")[0]['rate'];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment