PHP-Fusion Development

addslash()

Add correct number of slashes depending on QUOTES_GPC.

Versions: 9

stripslash( string $text ) : string

Parameters

$text (string) (Required) Text to which slashes should be added.

Return Values

(string) String with the correct number of slashes.

Examples

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