ThinkPHP/---合并数组后按时间排序

$arr = array_merge($data,$human);
$ctime_str = array();
foreach ($arr as $key => $v) {
$arr[$key]['ctime_str'] = strtotime($v['ts']);
$ctime_str[] = $arr[$key]['ctime_str'];
}
array_multisort($ctime_str, SORT_DESC, $arr);
posted @ 2018-12-18 10:50  Gupq  阅读(1611)  评论(0)    收藏  举报