Posts by gmcheco • 26 points
1 post
-
1
votes2
answers334
viewsA: Error reading dynamically generated JSON with file_get_contents
I simulated your case with the following code: $json = file_get_contents('arquivo.json'); $variable = json_decode($json); foreach ($variable as $key) { echo "nome: " . $key->nome; echo "valor: "…