Eu tenho o seguinte resultado em json:
Array
(
[0] => Array
(
[LocalObservationDateTime] => 2019-11-12T19:20:00-03:00
[EpochTime] => 1573597200
[WeatherText] => Algumas nuvens
[WeatherIcon] => 36
[HasPrecipitation] =>
[PrecipitationType] =>
[IsDayTime] =>
[Temperature] => Array
(
[Metric] => Array
(
[Value] => 28.7
[Unit] => C
[UnitType] => 17
)
[Imperial] => Array
(
[Value] => 84
[Unit] => F
[UnitType] => 18
)
)
[RealFeelTemperature] => Array
(
[Metric] => Array
(
[Value] => 32.7
[Unit] => C
[UnitType] => 17
)
[Imperial] => Array
(
[Value] => 91
[Unit] => F
[UnitType] => 18
)
)
[...]
Eu estou tentando pegar com PHP desta forma:
<?php
$detalhes = $data["WeatherText"];
//também tentei desta forma abaixo:
$detalhes = $data->WeatherText;
?>
Faço um var_dump($detalhes)
, retorna NULL
Onde eu estou errando?