PHP stripslashes() function

The stripslashes() function is used to remove backslashes, added with addslashes() function.

Syntax

stripslashes ( string $string ) : string

Parameters

Parameter Name Descrption
$string Required, The input string.

Return Value

Returns the string with backslashes stripped off

stripslashes() examples

echo stripslashes("It\'s test string");
//Output : It's test string

Related Functions