addcslashes
string addcslashes (string string, string chars_to_escape)
Escapes the specified characters (or range of characters) with C-style escape sequences.
Returns:
String argument with the specified characters escaped
Description:
addcslashes() performs C-style character escaping on the specified characters in a string. The characters to be escaped are defined in the chars_to_escape argument as a sequence of one or more single characters and/or ranges of characters (such as a..z or \0..\037). The characters within the string can be expressed as literals (a, b, c, ...), C-style character escape sequences (\n, \r, ...), octal character escape sequences (\102, \277, ...), or hexadecimal character escape sequences (\x20, \xFF, ...).
Of the ...
Get PHP Functions Essential Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.