(PHP 3, PHP 4 )

addslashes -- Quote string with slashes


string addslashes ( string str)

Returns a string with backslashes before characters that need to be quoted in database queries etc. These characters are single quote ('), double quote ("), backslash (\) and NUL (the NULL byte).

Замечание: magic_quotes_gpc is ON by default.

See also stripslashes(), htmlspecialchars(), and quotemeta().