Storing in an array

Hello all

I have a question.

If i’m pulling data from a database(which i can do); How can i put that data into an array for later use? But i need to be able to use that data more then once on the page.

Every time i try and use the data it only allows me to use it one. Also would it be a multi dimensional array( i think thats what its called.)?

Cheers