(PHP 8 >= 8.2.0)
odbc_connection_string_should_quote — Determines if an ODBC connection string value should be quoted
odbc_connection_string_should_quote(string $str): bool
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 odbc_connection_string_is_quoted() to check.
strThe string to check for.
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.odbc-connection-string-should-quote.php