I've recently written a class that queries my database and returns the results in arrays whose names correspond to the field names. I realize that I'm going to need to format the data in these arrays very specifically after retrieving it with this class. So I'm wondering if I should write/find a function or class that will quickly format a wide variety of data, or if I should take the time every time I use this class to format each individual array "by hand". I realize that PHP has some built in formatting function but I'm not sure that they'll take care of everything I'm trying to format. Any ideas?
Jim