I have the following array which is made up of a datetime and an event. I am looking to return the next event from today’s date. Eg: If today’s date is 2010-11-19 then ‘Football Match’ is returned.
What is the best way to achieve this result?
Many thanks.
Array(
[1] => Array
(
[start] => 20101113T100000Z
[event] => Fishing at the Pond
)
... etc ...
[29] => Array
(
[start] => 20101125T150000Z
[event] => Football Match
)
)
1 Answer