PHP.nl

odbc_connection_string_should_quote

odbc_connection_string_should_quote

Determines if an ODBC connection string value should be quoted

bool **odbc_connection_string_should_quote** string $str

Determines if a string needs to be quoted for an ODBC connection string value; that is, if it contains special characters.

Note that this does not check if the string is already quoted; an already quoted string will contain characters that will make this function return true. You should call to check. odbc_connection_string_is_quoted

strThe string to check for.

true if the string should be quoted; false otherwise.

odbc_connection_string_quote``odbc_connection_string_is_quoted