What if you have an unknown number of array items... such as with a shopping cart? How do you guys handle this type of situation:
Say that you want to save each item, its quantity, and its cost so that you can bring up the invoice at a later time. Would it be best to save this particular information into its own text file (it is not likely that the invoice would be accessed by more than one or two people at a time)?
Or, is there a way to save the items, their quantities, and their amounts into a single field of the DB, separated by a symbol (comma, pipe, etc.) AND THEN acquire this information and re-assign it to an array using the separator to denote a different item?
What function could I use to create an array from a single variable with information separated by a symbol, such as a pipe or comma?