How can I order times and dates from smallest to largest in order to extract data in a chronological order using PHP (not MySQL)?
I have an array with objects with various "keys" which include the time and the event.
Here is an edited var_dump
of what I have:
[0] => object {
["time"] => "24/06/2015 - 12:30 PM"
["event"] => "Another event"
}
[1] => object {
["time"] => "24/06/2015 - 08:45 AM"
["event"] => "Event"
}
[2] => object {
["time"] => "25/06/2015 - 09:50 AM"
["event"] => "Yet another event"
}
I want the output to be something similar to:
24/06/2015:
Event
Another event
25/06/2015:
Yet another event
Thanks in advance.