0
I have the following code:
$Json = array();
foreach ($Dados as $ln){
    $Json[label] = $ln['NOME'];
    $Json[value] = $ln['EMAIL'];            
}
echo json_encode($Json);
With this I have the following return:
{"label":"xxxxxxxxx","value":"xxxxxxxxxxx"}
I would like to bring all returns from the bank and also remove quotes from both label and value.
Expected result:
[
  {label:"xxxxxxxxx",value:"xxxxxxxxxxx"}
  {label:"yyyyyyyyy",value:"yyyyyyyyyyy"}
  {label:"zzzzzzzzz",value:"zzzzzzzzzzz"}
]
						
Only returns a pq vc overrides the array at each foreach iteration ...
– rray