I have a $ array variable that contains array values that were received from a JSON.stringify(venc)
[
{"Nº da Parc":"1","Data do pagamento":"06/04/2017","valor a pagar":"R$ 50,00"},
{"Nº da Parc":"2","Data do pagamento":"06/05/2017","valor a pagar":"R$ 50,00"},
{"Nº da Parc":"3","Data do pagamento":"06/06/2017","valor a pagar":"R$ 50,00"},
{"Nº da Parc":"4","Data do pagamento":"06/07/2017","valor a pagar":"R$ 50,00"},
{"Nº da Parc":"5","Data do pagamento":"06/08/2017","valor a pagar":"R$ 50,00"}
]
I was able to display only with echo $array;
.
How do I go through this variable?
I tried to use
foreach($array as $d){
echo $d;
}
and nothing displays
and when trying to use $arr = json_decode($array);
the php file gives error,
No message, just red in chrome debugger