$list = Db::name(‘*****‘)->where([])->select();
$arr[0] = [‘name‘=>‘推荐‘];
array_walk($arr,function($item) use (&$list) {
array_unshift($list, $item);
});
halt($list);
原文:https://www.cnblogs.com/zhuxingu/p/15155154.html