tp5模型的select转数组问题

浏览:3024 发布日期:2018/02/22 分类:ThinkPHP5专区
$user->where('status',1)->where('create_by',session('user_id'))->field('title,id,status,create_time')->select();
$user是实例化的UserModel 返回的是object
这样 怎么转数组呢 toarray加不上去
最佳答案
评论( 相关
后面还有条评论,点击查看>>