Current Location: Home> Function Categories> stripslashes

stripslashes

Inversely escape an escaped string
Name:stripslashes
Category:String
Programming Language:php
One-line Description:Removes the backslashes added by the addslashes() function.

Definition and usage

stripslashes() function deletes the backslashes added by addslashes() function.

Tip: This function can be used to clean up data retrieved from the database or from HTML forms.

Example

Remove the backslash:

 <?php
echo stripslashes ( "Who\'s Bill Gates?" ) ;
?>

Try it yourself

grammar

 stripslashes ( string )
parameter describe
string Required. Specifies the string to be checked.
Similar Functions
Popular Articles