- print_r: documentation ( source)
- strtotime: documentation ( source)
- usort: documentation ( source)
<?php
$arr = ['11/01/2012', '03/16/2022', '12/26/2021', '01/01/2014', '09/02/2013'];
usort($arr, function ($a, $b) {
return strtotime($a) - strtotime($b);
});
print_r($arr);