Posts by Diego Alves • 1 point
1 post
-
0
votes2
answers72
viewsA: How to show Json fields with PHP
Your json needs to be serialized (be a string) to make json_decode. For example: $obj = json_decode('[{"pergunta1":"Quantos anos?"},{"pergunta2":"Qual sua altura?"}]'); echo $obj[0]->pergunta1;…