function is_distinct($arr) { return count(distinct($arr)) === count($arr); }
public function count_ip($domain, $typeArr, $stime, $etime) { $ret = $this->db02->select(distinct('ip'))->from('GAME_DOWNCOUNT_' . $domain)->where_in('type', $typeArr)->where('time >= ', $stime)->where('time <= ', $etime)->get()->result_array(); return $ret; }