Addcslashes-function adds a slash to 'and'
Description
String addcslashes ($ str, string $ charlist)
The parameters in the preceding and charlist are listed backslash character strings.
Escape this string.
Charlist
Character escape list.If charlist contains characters such as n and R, they are converted to the C style, and the ASCII code for other non-alphanumeric characters is less than 32 and higher than 126 to the octal character.
When you define the character sequence of the parameter in charlist, make sure that you know the characters between the characters, you set for the beginning and the end of the range
<? Php
Echo addcslashes ('foo [] ', 'A. Z');
// Output: foo []
// All upper and lower-case letters will be escaped
//... But so will the [] ^ _'
?>
Example
In charlist, if "0 .. 37", it will escape all the character code between 0 and 31 with ASCII.
Example 1 addcslashes () example
<? Php
$ Escaped = addcslashes ($ not_escaped, "... 37! @ 177 .. 377 ");
?>