The syntax error is caused by the extraneous period (concatenation operator) at the end of that line just before the semicolon.
Also, what you said doesn't seem to make sense compared to what that code is attempting to do. You're outputting line breaks in between each item, thus the above code would add 1 column and 3 rows to $csv_output, rather than 3 columns in 1 row.