src/DataBaseAR.php
protected function in($field, array $values, $not=FALSE){
        $this->where.= $field . ' ';
        if($not){$this->where.= 'NOT ';}
        $this->where.= 'IN (';
        foreach ($values as $value) {
            $this->where.= "'$value',";
        }
        $this->where= rtrim($this->where, ',');
        $this->where.= ') ';
    }
protected function in($field, array $values, $not=FALSE){
        $this->where.= $field . ' ';
        if($not){$this->where.= 'NOT ';}
        $this->where.= 'IN (';
        foreach ($values as $value) {
            $this->where.= "'$value',";
        }
        $this->where= rtrim($this->where, ',');
        $this->where.= ') ';
    }
protected function in ( $ field , array $ values , $ not = FALSE ) { $ this -> where .= $ field . ' ' ; if ( $ not ) { $ this -> where .= 'NOT ' ; } $ this -> where .= 'IN (' ; foreach ( $ values as $ value ) { $ this -> where .= "'$value'," ; } $ this -> where = rtrim ( $ this -> where , ',' ) ; $ this -> where .= ') ' ; }
Arma el in para el where and o or
@param string $field
@param array $values
@param bool $not
Arma el in para el where and o or