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

You might also like the online stripslashes function.

Result:

Donate!

If you like these tools and you want to help us pay for the hosting you can use the following buttons to donate some money.