Press "Enter" to skip to content


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 for PHP Addcslashes Function

echo addcslashes(‘Welcome to’,’s’);