sasql_real_escape_string

Escapes all special characters in the supplied string. The special characters that are escaped are \r, \n, ', ", ;, \, and the NULL character.

Prototype

string sasql_real_escape_string( sasql_conn $conn, string $str )

Parameters

$conn – The connection resource returned by a connect function.
$string – The string to be escaped.

Returns

The escaped string or FALSE on error.