Guest User

Untitled

a guest
Jul 22nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. usort($dates, function ($a, $b) {
  2. $a = DateTime::createFromFormat('d/m/Y H:i:s', $a);
  3. $b = DateTime::createFromFormat('d/m/Y H:i:s', $b);
  4.  
  5. return $a->getTimestamp() < $b->getTimestamp();
  6. });
Add Comment
Please, Sign In to add comment