addcslashes

Share this…Facebook0TwitterLinkedinPrint Post Views: 667 addcslashes — Quote string with slashes in a C style Description string addcslashes ( string $str , string $charlist ) Returns a string with backslashes before characters that are listed in charlist parameter. Parameters str The string to be escaped. charlist A list of characters to be escaped. If charlist contains characters \n, \r etc., they are converted in C-like style, while other non-alphanumeric characters with ASCII […]

addslashes

Share this…Facebook0TwitterLinkedinPrint Post Views: 608 addslashes — Quote string with slashes Description string addslashes ( string $str ) Returns a string with backslashes added before characters that need to be escaped. These characters are: single quote (‘) double quote (“) backslash (\) NUL (the NUL byte) A use case of addslashes() is escaping the aforementioned characters in a string that is to be evaluated […]