Menu Samaritan's Purse

ADDSLASHES

Quote string with slashes

A backslash is added before the following characters: single quote ('), double quote ("), backslash (\), and NUL (the NUL byte).

SYNTAX

addslashes ( string $str ) : string

PARAMETERS

str

The string to be escaped.

RETURN

Returns the escaped string.

EXAMPLES

twelve o\'clock

PHP