Answer the question
In order to leave comments, you need to log in
How to sort array by date?
Here is an example of an array, how can I sort it by the date in $array[$i][0]?
Answer the question
In order to leave comments, you need to log in
$yourArr = [];
usort($yourArr, function ($a, $b) {
return $a[0] < $b[0] ? -1 : 1;
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question