Stripslash
Quote
stripslash ( string $text )
Parameters
text
The input string.
Return Values
Returns a string with backslashes stripped off. (' becomes ' and so on.) Double backslashes (\) are made into a single backslash ().
Example
Code
<?php
$str = "Is your name O'reilly?";
echo stripslash($str);
?>
Output
Quote
Is your name O'reilly?
Notes
The function only stripslashes if magic_quotes_gpc is on