Php reverse definition instance usage summary

Source: Internet
Author: User
Tags php mysql
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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.