The addslashes() function returns a string with backslashes.
addslashes ( string $string ) : string
Parameter Name | Descrption |
---|---|
$string | Required, A string to be escaped |
Returns the escaped string
echo addslashes("It's test string"); //Output :: It\'s test string
Related Functions