0
$arquivo = '{"nome":"João","cpf":"00000","teste":"ooooo"}';
$dd = json_decode($arquivo, TRUE);
foreach($dd as $value)
{
$nome = $value->{'nome'};
$cpf = $value->{'cpf'};
}
I want to take the name value and Cpf of the array but the result comes null for the variables, anyone knows how to solve? please
This seems more like a syntax error.
– MarceloBoni
I write echo $value; here comes "John" as if it only had that value there
– rods