PHP stripcslashes() function

The stripcslashes() function is used to remove backslashes, added with addcslashes() function.

Syntax

stripcslashes ( string $string ) : string

Parameters

Parameter Name Descrption
$string Required, The string to be unescaped

Return Value

Returns the unescaped string

stripcslashes() examples

echo stripcslashes("Test \String");
//Test String

Related Functions