So im getting very confused about the sorting functions in php, and wondered if someone could point me in the right direction.
The following is a multidimensional array, that i wish to sort first my date, and then by time. Such that if 2 dates are the same, the earlier time will show first.
can this be done and how?
the top array is called $events
Thank you!
array(4) {
[0]=>
array(3) {
["name"]=>
string(4) "Jack"
["date"]=>
string(8) "21.11.13"
["time"]=>
string(5) "17:36"
}
[1]=>
array(3) {
["name"]=>
string(4) "Mike"
["date"]=>
string(8) "21.11.13"
["time"]=>
string(5) "07:30"
}
[2]=>
array(3) {
["name"]=>
string(6) "Thomas"
["date"]=>
string(8) "10.11.12"
["time"]=>
string(5) "18:21"
}
}