y gracias de antemano... tengo el siguiente array y necesito llegar a los campos "code":"USD" y "rate":"3,443.6200" estoy tratando de imprimirlo con $array["time"]["bpi"]["USD"]["code"]$array["time"]["bpi"]["USD"]["code"]
y $array["time"]["bpi"]["USD"]["rate"]$array["time"]["bpi"]["USD"]["rate"]
pero no les llego
{"time":{"updated":"Jan 29, 2019 20:23:00 UTC","updatedISO":"2019-01-29T20:23:00+00:00","updateduk":"Jan 29, 2019 at 20:23 GMT"},"disclaimer":"This data was produced from the CoinDesk Bitcoin Price Index (USD). Non-USD currency data converted using hourly conversion rate from openexchangerates.org","chartName":"Bitcoin","bpi":{"USD":{"code":"USD","symbol":"$","rate":"3,443.6200","description":"United States Dollar","rate_float":3443.62},"GBP":{"code":"GBP","symbol":"£","rate":"2,628.9249","description":"British Pound Sterling","rate_float":2628.9249},"EUR":{"code":"EUR","symbol":"€","rate":"3,013.2329","description":"Euro","rate_float":3013.2329}}}
{
"time": {
"updated": "Jan 29, 2019 20:23:00 UTC",
"updatedISO": "2019-01-29T20:23:00+00:00",
"updateduk": "Jan 29, 2019 at 20:23 GMT"
},
"disclaimer": "This data was produced from the CoinDesk Bitcoin Price Index (USD). Non-USD currency data converted using hourly conversion rate from openexchangerates.org",
"chartName": "Bitcoin",
"bpi": {
"USD": {
"code": "USD",
"symbol": "$",
"rate": "3,443.6200",
"description": "United States Dollar",
"rate_float": 3443.62
},
"GBP": {
"code": "GBP",
"symbol": "£",
"rate": "2,628.9249",
"description": "British Pound Sterling",
"rate_float": 2628.9249
},
"EUR": {
"code": "EUR",
"symbol": "€",
"rate": "3,013.2329",
"description": "Euro",
"rate_float": 3013.2329
}
}
}
Agradeceria su colaboracion gracias