按照时间排序
//降序
public function test($person)
{
n
e
w
A
r
r
=
a
r
r
a
y
(
)
;
f
o
r
e
a
c
h
(
newArr = array(); foreach (
newArr=array();foreach(person as $key => $v) {
n
e
w
A
r
r
[
newArr[
newArr[key][‘createtime’] = KaTeX parse error: Expected 'EOF', got '}' at position 22: …atetime']; }̲ array_mult…newArr, SORT_DESC, $person);//SORT_DESC为降序,SORT_ASC为升序
return $person;
}
按照指定字段排序
最新推荐文章于 2024-07-11 17:28:33 发布