PHP » Strings » stripslashes()

Syntax:
string stripslashes(string s)
s
String with backslashes.

Removes slashes added by addslashes().

This function removes backslashes used to escape characters. stripslashes() is the reverse of addslashes().

Examples

Code:
<?php

$s = "SELECT * FROM table WHERE msg = 'Don\'t do it'";
print stripslashes($s);

?>
Output:
SELECT * FROM table WHERE msg = 'Don't do it'
Explanation:

The backslash is removed from the query.

See Also: