Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP stripslashes() Function

PHP stripslashes() Function

PHP String Reference Manual PHP String Reference Manual

Example

Remove backslashes:

Run Example »


Definition and Usage

The stripslashes() function removes backslashes added by the addslashes() function.

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


Syntax

stripslashes(

string

)

Parameters Description
string Required. Specifies the string to check.

Technical Details

Return Value: Returns the string with backslashes removed.
PHP Version: 4+

PHP String Reference Manual PHP String Reference Manual