ThinkPHP5中where查询条件使用数组时设置or或者and 0 By 董德多 on 2020年5月5日 ThinkPHP ThinkPHP5中where查询条件使用数组时设置or或者and的写法: $where['status'] = array(['=',1],['=',3],'or'); 上面代码等同于: where status = 1 or status = 3; 如果是: $where['status'] = array(['>',1],['<',5],'and'); 就等同于: where status > 1 and status < 5 thinkphp5 tp5 where 数组