• Teach Your Self With
             w3htmlschool.com

PHP Addcslashes Function

The addcslashes() function is used to add backslashes before characters that are listed in the second parameter.

Quote string with slashes in a C style.

if you choose to escape characters 0, a, b, f, n, r, t and v. They will be converted to \0, \a, \b, \f, \n, \r, \t and \v, all of which are predefined escape sequences in C
Example
Example Output