根据字段数字大小排序(这里用到php中array_multisort函数)

$arr =  $tickets_info;(这里的arr打印出来是2维数组)
$flag = array(); 
foreach ($arr as $v) {
    $flag[] = $v['start_time'];
}
array_multisort($flag, SORT_ASC, $arr);

foreach ($arr as $k=>$v) {
    $v['start_time'] = substr($v['start_time'],5,11);
    $arr[$k]['start_time'] = $v['start_time'];
}

💫 评论卡

备案号:粤ICP备18155514号-2