That is also a possibility, you can store all temp-results in an array. It depends entirely on what you want to do with the data.
If you want to do an insert for every result from a select, then using an array would be good.
But if you want to join using 'stored data' things become very much more difficult using array's.
If your queries are just selects with data from other selects, you could also choose to open the first query,
fetch the first result, use that to start a second query,
fetch the first result from that, and use it to start the thrid query.
When the third query is finished, you can move to the next result of the second query, use it, etc untill query 2 is finished, then move to the next result of the first query.
As you can see that can give "tons" of queries.