Storing array of values in one variable

Storing array of values in one variable

The is My Code in the attachement. I'm preparing a offline quiz system. This code shows multiple questions with there option field. Now in radio variable, currently it stores the option of question submitted by user who's name is q1. Since the name of every question set is dynamic,how can I store multiple values in radio variable ?

Like option of q1, q2... and so on ...