October 2005
Intermediate to advanced
372 pages
11h 35m
English
stripslashes()
string stripslashes ( string str )The stripslashes() function is the opposite of addslashes(): it removes one set of \-escapes from a string. For example:
$string = "I'm a lumberjack and I'm okay!";
$a = addslashes($string);
// string is now "I\'m a lumberjack and I\'m okay!"
$b = stripslashes($a);
// string is now "I'm a lumberjack and I'm okay!"