0
I’d like to play a JSON with PHP, where:
{"data":
{
"nome1":João,
"status":["Ativo"]
}
}
$retorno = json_decode($jsonRet);
$nome1 = $retorno->data->nome1;
$status = $retorno->data->status;
echo "nome1: ".$nome1." / ".$status;die;
The nome1
, I can read that way normally, but status that is between brackets does not work, returns with nothing...
How would it be to read correctly?
Solved, Thank you!!!
– Neo