PHP stripcslashes()Functions

PHP String 参考手册PHP String Reference Manual

Examples

Delete the backslash before "World!":

<?php
echo stripslashes("Hello World!");
?>

Run Example »

Definition and Usage

The stripcslashes() function deletes backslashes added by the addcslashes() function.

Tip:This function can be used to clean up data retrieved from a database or from an HTML form.


Syntax

stripcslashes(string)

Parameter Description
string Required. Specifies the string to be checked.

Technical Details

Return value: Returns the unescaped string.
PHP Version: 4+


PHP String 参考手册PHP String Reference Manual Other Extensions