php stripcslashes() function
Translation results:
英[slæʃ] 美[slæʃ]
vt.Severely cut; slash; whip; severely criticize
vi.Severely chop; severely criticize
n .slash; slash; slash, scar; swamp lowland
Third person singular: slashes Plural: slashes Present participle: slashing Past tense: slashed Past participle: slashed
php stripcslashes() functionsyntax
Function: Remove the backslashes added by the addcslashes() function.
Syntax: stripcslashes(string)
Parameters:
Parameter | Description |
string | Required, specifies the string to be checked. |
Description: This function can be used to clean data retrieved from the database or from the HTML form.
php stripcslashes() functionexample
<?php echo stripcslashes("Hello \World!"); ?>
Run instance»
Click the "Run instance" button to view the online instance
Output:
Hello World!
<?php echo stripcslashes("i'm \study \in \php.cn"); ?>
Run Instance»
Click the "Run Instance" button to view the online instance
Output:
i'm study in php.cn