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