VOOZH about

URL: https://www.php.net/odbc_connection_string_should_quote

⇱ PHP: odbc_connection_string_should_quote - Manual


odbc_cursor »
« odbc_connection_string_quote

odbc_connection_string_should_quote

(PHP 8 >= 8.2.0)

odbc_connection_string_should_quoteDetermines if an ODBC connection string value should be quoted

Description

function 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.

Parameters

str

The string to check for.

Return Values

true if the string should be quoted; false otherwise.

See Also

Found A Problem?

Learn How To Improve This PageSubmit a Pull RequestReport a Bug
add a note

User Contributed Notes

There are no user contributed notes for this page.
👁 To Top
and to navigate • to select • to close • to open
Press without selection to search using Google