PHP stripcslashes () function
Examples
Delete "World!" In front of a backslash:
<?php
echo stripslashes("Hello World!");
?>
echo stripslashes("Hello World!");
?>
Running instance »
Definition and Usage
stripcslashes () function to remove the function to add addcslashes backslash ().
Tip: This function can be used to clean up or retrieved from the HTML form data from the database.
grammar
stripcslashes( string )
参数 | 描述 |
---|---|
string | 必需。规定要检查的字符串。 |
technical details
return value: | Returns unescaped string. |
---|---|
PHP version: | 4+ |
PHP String Reference