I have some loops in my php and I want to get an array like this:
Array ( [nome1] => valor [nome2] => valor )
Within a loop I've tried: $array_dos_pagamentos[nome] = $variavelnome;
and in another loop $array_dos_pagamentos[valor] = $variavelvalor;
The problem is that the output Array ( [nome] => Susana laginha, [valor] => 84 )
or just a log .. if I do:
$array_dos_pagamentos[]=$variavelnome;
$array_dos_pagamentos[]=$variavelvalor;
sai
Array (
[0] => Beatriz grade
[1] => 15
[2] => Promotores
[3] => 40
[4] => Susana laginha
[5] => 84
)