看文档里有写,支持多数组的条件,但实际查询,没有效果。
https://blog.yzmcms.com/php/254.html
$where['字段'] = '字段条件';
$where['字段1'] = array('表达式','字段条件1');
$where['字段2'] = array('表达式','字段条件2');
$where['字段3'] = array('表达式','字段条件3','可选参数(函数名)');
//第三个为可选参数,第三个参数是一个函数名称,是对“字段条件”做处理,例如:
$where['cms'] = ['neq', 'yzmcms', 'trim'];
$where['id'] = ['in', ['11','22','33'], 'intval'];
$db->where($where)->select();
// 条件或查询(OR)
$db->where($where1, $where2, $where3)->select();
3年前