?currency= ?format=
Value
  1. AUD
  2. BRL
  3. CAD
  4. CHF
  5. CNY
  6. EUR
  7. GBP
  8. INR
  9. JPY
  10. MXN
  11. RUB
  12. USD
  13. ZAR
JSON
Description Extraction of Currency. Output in JSON.
Example
<?php






header('Content-Type: text/plain');






$content = file_get_contents('https://xmlcharts.com/cache/industrial-metals.php?format=json');

if ($content === false) die('Something went wrong.');






foreach (json_decode($content, true) as $currency => $arr) {



    foreach ($arr as $commodity => $price) {



        print $commodity.' in '.$currency.' per pound: '.round($price, 2).PHP_EOL;

        print $commodity.' in '.$currency.' per kilogram: '.round($price * 0.45359237, 2).PHP_EOL.PHP_EOL;



    }



}






?>