September 2001
Intermediate to advanced
768 pages
32h 45m
English
string stripcslashes(string string) Converts C-style escape sequences to their literal values and strips leading backslashes.
Returns:
String
Description:
stripcslashes() converts C-style escape sequences (\, \a, \b, \f, \n, \r, \t, \v, and \x hh hex and \ ooo octal character escape sequences) to their literal equivalents. Additionally, it strips the backslash from escape sequences that it doesn’t recognize.
Version:
PHP 4.0b4+
See also:
To remove backslashes without performing conversions:
stripslashes()
To add escape sequences to a string:
addslashes() addcslashes()
Example:
<?php $quote = '"The only processes that we can rely on indefinitely are cyclical;\n' ... |
Read now
Unlock full access