-1

this is my api
https://api.metalpriceapi.com/v1/latest?api_key=cb15852705e671c76a4dc1ac9789ed2a&base=USD¤cies=XAU,XAG,EUR
This is my php code to fetch data. it is working fine :
<?php
$curl = curl_init();
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt_array($curl, array(
CU...