$userList = Db::select(function($query){ $query->table('think_user')->where('status',1); }); print_r($userList);
thinkphp-使用闭包函数
原创
©著作权归作者所有:来自51CTO博客作者素颜猪的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
thinkphp-模板输出变量使用函数
thinkphp-模板输出变量使用函数
模板 thinkphp 输出变量 -
thinkphp-删除delete函数
thinkphp-删除delete函数
删除 delete thinkphp -
thinkphp-使用Query对象
thinkphp-使用Query对象
对象 Query thinkphp -
thinkphp-更新数据update函数
thinkphp-更新数据update函数
update 更新数据 thinkphp -
thinkphp-使用默认值
thinkphp-使用默认值
使用 默认值 thinkphp -
thinkphp-添加数据insert函数
thinkphp-添加数据insert函数
insert thinkphp 添加数据 -
thinkphp-比较标签-标签中值函数
thinkphp-比较标签-标签中值函数
标签 thinkphp 比较标签 -
thinkphp-原样输出
thinkphp-原样输出
thinkphp 原样输出 -
thinkphp-性能调试
thinkphp-性能调试
thinkphp 性能调试 -
thinkphp-模板注释
thinkphp-模板注释
thinkphp 模板注释 -
thinkphp-调试halt
thinkphp-调试halt
调试 halt thinkphp -
thinkphp-查询方法
thinkphp-查询方法
thinkphp 查询方法 -
thinkphp-比较标签-equal
thinkphp-比较标签-equal
thinkphp equal 比较标签 -
thinkphp-条件判断-if标签
thinkphp-条件判断-if标签
标签 thinkphp 条件判断 -
thinkphp-条件判断-present
thinkphp-条件判断-present
thinkphp present 条件判断