PHPaddcslashes () function. Define and use the addcslashes () function to add a backslash before a specified character. The syntax addcslashes (string, characters) string is required. Specifies the string to be checked. Characters is optional. Rule definition and usage
The addcslashes () function adds a backslash before the specified character.
Syntax addcslashes (string, characters)
String is required. Specifies the string to be checked.
Characters is optional. Specifies the character or character range affected by addcslashes.
Tips and comments
Note: Be careful when applying addcslashes () to 0, r, n, and t. In PHP, and are predefined escape sequences.
Example
$ Val = addcslashes ($ val ,\);
?>
The addcslashes () function adds a backslash before the specified character. The syntax addcslashes (string, characters) string is required. Specifies the string to be checked. Characters is optional. Rules...