PHP Wysardry
PHP Manual

PHP documentation.



Home / PHP / Manual / ...



PHP Manual
Prev Next

addslashes

(PHP 3 <= 3.0.18, PHP 4 >= 4.0.0)

addslashes -- Quote string with slashes

Description

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).

Note: magic_quotes_gpc is ON by default.

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


Prev Manual Home Next
addcslashes Up bin2hex
Site Menu

Amazon.ca
Amazon.com
Amazon.co.uk



Most recently updated on 11 May, 2003

Home / PHP / Manual / ...



Please feel free to contact us with any comments or suggestions
PHP Manual
PHP Wysardry

This site is hosted by Spaceports