Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (Français) » SQL Anywhere Server - Programming » SQL Anywhere Data Access APIs » SQL Anywhere PHP API » SQL Anywhere PHP API reference

 

sasql_escape_string

Prototype
string sasql_escape_string( sasql_conn $conn, string $str )
Description

Escapes all special characters in the supplied string. The special characters that are escaped are \r, \n, ', ", ;, \, and the NULL character. This function is an alias of sasql_real_escape_string.

Parameters

$conn   The connection resource returned by a connect function.

$string   The string to be escaped.

Returns

The escaped string.

Related functions