$json = '{
"currency": {
"19:15": {
"1": "1.20585"
},
"19:14": {
"1": "1.22585"
}
}
}';
I want to retrieve value "1.20585" out of this array in PHP.
The time "19:15" changes every minute, but I want always the upper first one (most recent).
$array["currency"][0]["1"]
didn't solve it for me. Does someone know one-line solution that will retrieve the value?