PHP 4, PHP 5, PHP 7, PHP 8
stripslashes - Un-quotes a quoted string

stripslashes( string$string ): string

Un-quotes a quoted string.

stripslashes can be used if you aren't inserting this data into a place (such as a database) that requires escaping. For example, if you're simply outputting data straight from an HTML form.



The input string.

Return Values

Returns a string with backslashes stripped off. (\' becomes ' and so on.) Double backslashes (\\) are made into a single backslash (\).

Related Functions

Example of stripslashes

Show all examples for stripslashes

PHP Version:

Function stripslashes:

Strings Functions

Most used PHP functions