In PHP, the escape and inverse meanings of strings can be implemented using the self-owned functions addslashes () and stripslashes () provided by PHP. 1. the addslashes () function is used to add a backslash (\) to the specified string (\). The syntax format is as follows: addslashes (string); description: return string. this string must be added with a backslash before certain characters for database query statements. These characters are single quotes (& amp ;#... in PHP, the escape and inverse meanings of strings can be implemented using the self-owned functions addslashes () and stripslashes () provided by PHP. 1. the addslashes () function is used to add a backslash (\) to the specified string (\). The syntax format is as follows: addslashes (string); description: return string. this string must be added with a backslash before certain characters for database query statements. These characters are single quotation marks ('), double quotation marks ("), backslash (\), and NUL (NULL ). 2. the stripslashes () function stripslashes () is used to add a backslash (\) to the addcslashes () function to delete the original result. The syntax format is as follows: stripslashes (string); we introduced what is php escape and reverse literal string data, and introduced the escape character "\", and how to use the escape character to convert the string
1. PHP escape and reverse literal string functions
Introduction: for mysql escape functions, who gives the younger brother a PHP mysql escape function and who gives the younger brother a function, the query seems to have to reverse the function. For more information, see! <> It should be possible to escape mysql characters.
5. Which of the following is the mysql escape function?
Introduction: for mysql escape functions, who gives the younger brother a PHP mysql escape function and who gives the younger brother a function, the query seems to have to reverse the function. For more information, see! <> It should be possible to escape mysql characters.
The above is the detailed summary of php reverse definition instance usage. For more information, see other related articles in the first PHP community!