求thinkphp 查询当天 数据的方法

2025-06-27 19:50:21
推荐回答(1个)
回答1:

$cur_date = strtotime(date('Y-m-d'));
M('table')->where("create_time >= '{$cur_date}'")->select();