src/Google/AdsApi/AdWords/Query/v201809/ExpressionBuilder.php
private static function formatValue($value)
    {
        // The `$value` argument could be a number (example: 123) or a numeric
        // string (example: '123'). A numeric string is recommended for
        // 32-bit systems to prevent unexpected truncation.
        //
        // To use a numeric string in a WHERE condition, it needs to be
        // wrapped in a pair of quotes.
        // For example:
        //     SELECT Id WHERE Id = '9223372036854775807'
        if (is_numeric($value) && !is_string($value)) {
            return $value;
        }

        return sprintf('\'%s\'', addslashes($value));
    }
private static function formatValue($value)
    {
        // The `$value` argument could be a number (example: 123) or a numeric
        // string (example: '123'). A numeric string is recommended for
        // 32-bit systems to prevent unexpected truncation.
        //
        // To use a numeric string in a WHERE condition, it needs to be
        // wrapped in a pair of quotes.
        // For example:
        //     SELECT Id WHERE Id = '9223372036854775807'
        if (is_numeric($value) && !is_string($value)) {
            return $value;
        }

        return sprintf('\'%s\'', addslashes($value));
    }
private static function formatValue ( $ value ) { // The `$value` argument could be a number (example: 123) or a numeric // string (example: '123'). A numeric string is recommended for // 32-bit systems to prevent unexpected truncation. // // To use a numeric string in a WHERE condition, it needs to be // wrapped in a pair of quotes. // For example: //     SELECT Id WHERE Id = '9223372036854775807' if ( is_numeric ( $ value ) && ! is_string ( $ value ) ) { return $ value ; } return sprintf ( '\'%s\'' , addslashes ( $ value ) ) ; }
If the input value is not numeric, escape all quotes, then wrap the
string in a pair of quotes.

@param mixed $value a value to be formatted
@return int|string a number if the input is a numeric value; Otherwise,
returns a quoted string
If the input value is not numeric escape all quotes then wrap the string in a pair of quotes .