BY CSV FORMAT I MEAN THE FOLLOWING FORMAT WHERE
Q= Question
R= Respondent
A= Answer
Q1, Q2, Q3, Q4, Q5
R1A1, R1A2, R1A3, R1A4, R1A5
R2A1, R2A2, R2A3, R2A4, R2A5
R3A1, R3A2, R3A3, R3A4, R3A5
R4A1, R4A2, R4A3, R4A4, R4A5
R5A1, R5A2, R5A3, R5A4, R5A5
You can have that output as plain text on the page or in a text area if you are worried about layout.
You already have the data in the code, this should not be a difficult thing for you since you wrote it in the first place. Like I said before, I am not a coder, so I will try to make it work, but I doubt I will be successful. Please make this a reality.