protected function bindValues($values) {
        if(is_array($values)) {
            foreach($values as $i => $value) {
                if(is_numeric($value) && intval($value) == $value && $value[0] != 0) {$type = PDO::PARAM_INT; $value = intval($value);}
                elseif(is_null($value) || $value === 'NULL') {$type = PDO::PARAM_NULL; $value = NULL;}
                elseif(is_bool($value)) {$type = PDO::PARAM_BOOL;}
                else{$type = PDO::PARAM_STR;}
                $this->query->bindValue(intval($i + 1), $value, $type);
            }
        }
    }
protected function bindValues($values) {
        if(is_array($values)) {
            foreach($values as $i => $value) {
                if(is_numeric($value) && intval($value) == $value && $value[0] != 0) {$type = PDO::PARAM_INT; $value = intval($value);}
                elseif(is_null($value) || $value === 'NULL') {$type = PDO::PARAM_NULL; $value = NULL;}
                elseif(is_bool($value)) {$type = PDO::PARAM_BOOL;}
                else{$type = PDO::PARAM_STR;}
                $this->query->bindValue(intval($i + 1), $value, $type);
            }
        }
    }
protected function bindValues ( $ values ) { if ( is_array ( $ values ) ) { foreach ( $ values as $ i => $ value ) { if ( is_numeric ( $ value ) && intval ( $ value ) == $ value && $ value [ 0 ] != 0 ) { $ type = PDO :: PARAM_INT ; $ value = intval ( $ value ) ; } elseif ( is_null ( $ value ) || $ value === 'NULL' ) { $ type = PDO :: PARAM_NULL ; $ value = NULL ; } elseif ( is_bool ( $ value ) ) { $ type = PDO :: PARAM_BOOL ; } else { $ type = PDO :: PARAM_STR ; } $ this -> query -> bindValue ( intval ( $ i + 1 ) , $ value , $ type ) ; } } }
Band values to use in the query
@param array $values This should be the values being used in the query
Band values to use in the query