addslashes()
addslashes - Quote string with slashes
Syntax
string addslashes (
string $str)
Arguments
- str - The string to be escaped.
Description
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).
Version
PHP 4, 5
Return value
Returns the escaped string.