php二维数组排序

正文开始

~~~ //按从小到大排序 foreach ($newData as $key_ => $list) { usort($list, function($a, $b) { return $a['lastKeyname'] < $b['lastKeyname'] ? -1 : 1; }); $newData[$key_] = $list; } ~~~

正文结束

PHP接口(interface)和抽象类(abstract) tp5/thinkhp5.0+ 路由不生效的问题