PHP stripslashes () function
Examples
Remove the backslash:
<?php
echo stripslashes("Who's Peter Griffin?");
?>
echo stripslashes("Who's Peter Griffin?");
?>
Running instance »
Definition and Usage
stripslashes () function to remove the addslashes () function to add the backslash.
Tip: This function can be used to clean up or retrieved from the HTML form data from the database.
grammar
stripslashes( string )
参数 | 描述 |
---|---|
string | 必需。规定要检查的字符串。 |
technical details
return value: | Back backslash stripped string. |
---|---|
PHP version: | 4+ |
PHP String Reference