public function quoteValue($str)
    {
        if (is_int($str) || is_float($str)) {
            return $str;
        }

        return "'" . addcslashes(str_replace("'", "''", $str), "\000\n\r\\\032") . "'";
    }
public function quoteValue($str)
    {
        if (is_int($str) || is_float($str)) {
            return $str;
        }

        return "'" . addcslashes(str_replace("'", "''", $str), "\000\n\r\\\032") . "'";
    }
public function quoteValue ( $ str ) { if ( is_int ( $ str ) || is_float ( $ str ) ) { return $ str ; } return "'" . addcslashes ( str_replace ( "'" , "''" , $ str ) , "\000\n\r\\\032" ) . "'" ; }
Quotes a string value for use in a query.

@param string $str string to be quoted

@return string the properly quoted string
@see http://www.php.net/manual/en/function.PDO-quote.php
Quotes a string value for use in a query .