PHP Online Tools

Quote String With Slashes

What is function addslashes()?

The addslashes() function returns a string with backslashes in front of predefined characters.

The predefined characters are: single quote ('), double quote ("), backslash (\), and NULL

This function can be used to prepare a string for storage in a database and database queries.