Array with index within asterisk programming

Hi all, I’m using asterisk to process a number of questions. My database has about 1000 couple (a,b). In extension.conf, I connect to database to get a random 20 couple (a,b) but I don’t know how to save these values of all 20 couples at once for further process. Is there any way to store these values at once? Is there any way to use array with index (such as a[i]) within asterisk? Or please share your idea, your experience how you store a number of values at the same time from database ? Thank you very much :smile: