Add a backslash in front of the character "W":
The addcslashes() function returns a string with backslashes in front of the specified characters.
Note: The addcslashes() function is case-sensitive.
Note: Be careful using addcslashes() on 0 (NULL), r (carriage return), n (newline), t (form feed), f (tab) and v (vertical tab). In PHP, \0, \r, \n, \t, \f and \v are predefined escape sequences.
|string||Required. Specifies the string to be escaped|
|characters||Required. Specifies the characters or range of characters to be escaped|
|Return Value:||Returns the escaped string|
Add backslashes to certain characters in a string:
Add backslashes to a range of characters in a string:
Your message has been sent to W3Schools.