1 //where條件數組拼接 2 $where['status'] = 1; 3 $maps['id'] = ['in', implode(',', $r_ids)]; 4 $maps['uid'] = $where['uid']; 5 $maps['_logic'] = 'OR'; 6 $where['_complex'] = $maps;
打印出來效果 此時 id 與 uid 的關係就是or的關係數組