Answers for "php array sort by date ascending"

PHP
2

php array order by date

usort($array, function($a, $b) {
  return new DateTime($a['datetime']) <=> new DateTime($b['datetime']);
});
Posted by: Guest on January-09-2020
0

php sort time

strtotime();
Posted by: Guest on January-25-2021

Code answers related to "php array sort by date ascending"

Browse Popular Code Answers by Language