How to Load a table's data into a Array?

as title .
thanks.