Current Location: Home> Function Categories> stripcslashes

stripcslashes

Anti-reference a string escaped using addcslashes()
Name:stripcslashes
Category:String
Programming Language:php
One-line Description:Removes the backslashes added by the addcslashes() function.

Definition and usage

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

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

Example

Remove the backslash in front of "World!":

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

Try it yourself

grammar

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