PHP-Fusion Development

stripslash()

Stripslash function, only strip slashes if magic_quotes_gpc is on.

Versions: 9

stripslash( string $text ) : string

Parameters

$text (string) (Required) The input string.

Return Values

(string) String with backslashes stripped off (\' becomes ' and so on), double backslashes (\) are made into a single backslash (\).

Examples

$text = 'Is your name O\'reilly?';
echo stripslash($text);
// Is your name O'reilly?