- mongodb - 在 MongoDB mapreduce 中,如何展平值对象?
- javascript - 对象传播与 Object.assign
- html - 输入类型 ="submit"Vs 按钮标签它们可以互换吗?
- sql - 使用 MongoDB 而不是 MS SQL Server 的优缺点
\x1a
字符是什么意思,mysql_real_escape_string
为什么要转义它?
来自文档:
mysql_real_escape_string() calls MySQL's library function mysql_real_escape_string, which prepends backslashes to the following characters: \x00, \n, \r, \, ', " and \x1a.
ASCII 字符引用将其描述为 替换字符
,但这并没有说明太多。
最佳答案
这是一个 Unicode escape sequence, in hexadecimal (base 16) . \x1a
是 "substitute" character .
另请参阅:https://en.wikipedia.org/wiki/Substitute_character
Why does
mysql_real_escape_string
escape it?
According to the documentation,
Strictly speaking, MySQL requires only that backslash and the quote character used to quote the string in the query be escaped.
mysql_real_escape_string()
quotes the other characters to make them easier to read in log files.
关于php -\x1a 字符是什么意思,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16255585/
我是一名优秀的程序员,十分优秀!