请帮忙。对数组的理解有些磕磕绊绊。有一个要求:
$q = $modx->newQuery('modContext');
$where = array(
'modContext.key:in' => array('web', 'mgr'),
'cs.value:!=' => NULL,
'cs.value:!=' => '',
);
$q->select(array(
'modContext.key',
'cs.key as setting_key',
'cs.value'
));
$q->innerJoin('modContextSetting', 'cs', 'cs.context_key = modContext.key');
$q->where($where);
where 一次分配的位置。如何将这个动作分成几个。类型:
$where['modContext.key:in'] => 'web';
$where['modContext.key:in'] => 'mgr';
$where['cs.value:!='] => NULL;
$where['cs.value:!='] => '';
请帮帮我。
像这样: