Online addslashes( ) function


string addslashes ( string $str )
Returns a string with backslashes added before characters that need to be escaped. These characters are: single quote (') double quote (") backslash (\) NUL (the NUL byte)