Hi,
I am working on a php program that needs to store many "Event" objects in an array. Each event has a "due" date, and I need to be able to easily get these events by that day. There may be more than one event on any given day.
I thought about using a MySQL-style date as the key, like $array["year-month-day"], but it's messy. I also tried $array[year][month][day], but then I get a 4d array, which also seems messy to me.
My question is this: Has anyone found a good way of storing objects by time like this, and if so, how did you do it?