Name
stripslashes()
Synopsis
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!"
Get PHP in a Nutshell 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.