Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- usort($dates, function ($a, $b) {
- $a = DateTime::createFromFormat('d/m/Y H:i:s', $a);
- $b = DateTime::createFromFormat('d/m/Y H:i:s', $b);
- return $a->getTimestamp() < $b->getTimestamp();
- });
Add Comment
Please, Sign In to add comment