Hello! I have a PHP web app that generates a somewhat complex report from our database. The resulting data structure to populate the report is a big ol' array, and it's heavily nested, and it's kind of a pain to dig into to find just one thing.
Ideally I'd like to have some kind of data structure that I can just query, like a database. Something like "get overall_score from X where Y = Z".
One thought that occurs to me is that I could just use temp tables and query those instead of using the array. But temp tables die after the session; I'd like something that I could keep alive a little longer.