In a while loop I set up this array:
$prejsonarray[] = json_encode(array( 'dealerName'=> $row_1, 'dealerAddress' => $addressstring ));
Then outside it I try to concatenate the JSON data into a single string:
foreach($prejsonarray as $v){ $dealersstring .= "$v " }
And I get the error:
> Parse error: syntax error, unexpected '}'
For the `foreach` line. However, if I echo out `$prejsonarray[0]` I can see it contains the expected JSON data.
Any ideas? YOu are missing a semicolon after ` $dealersstring .= "$v " `