Exemple #1
0
function is_distinct($arr)
{
    return count(distinct($arr)) === count($arr);
}
Exemple #2
0
 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;
 }