so take this as the url output from the browser.
{
"data": {
"detections": [
[
{
"language": "en",
"isReliable": false,
"confidence": 0.5714286
}
]
]
}
}
now i need to get “en” value from the returned values
i tried:
$from = $json->data->detections->language;
still none work. what am i missing here ?
$json = json_decode(file_get_contents($detect));
It is
Get
var_dump($json);and see the actual structure