[Solved] How to change format of a number in sql?


$times_array = array();
$times = array("10:30","11:00","9:00");
foreach($times as $time){
    $times_array[strtotime($time)] = $time;
}

ksort($times_array);
print_r($times_array);

solved How to change format of a number in sql?