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

SQL Anywhere 11.0.1 (中文) » SQL Anywhere 服务器 - 编程 » SQL Anywhere 数据访问 API » SQL Anywhere PHP API » SQL Anywhere PHP API 参考

 

sasql_escape_string

原型
string sasql_escape_string( sasql_conn $conn, string $str )
说明

转义所提供的字符串中的所有特殊字符。要转义的特殊字符是 \r、\n、'、"、;、\ 和 NULL 字符。此函数是 sasql_real_escape_string 的别名。

参数

$conn   由连接函数返回的连接资源。

$string   要转义的字符串。

返回值

已转义字符串。

相关函数