Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想输出“\x68\x61\061”
$a = "\x68\x61\061"; echo $a
这不会导致输出中出现“\x68\x61\061”。如何解决这个问题?
使用另一个反斜杠转义您的特殊字符,在这种情况下为反斜杠。
$a = "\\x68\\x61\\061"; echo $a;
或改用单引号。
$a = '\x68\x61\061'; echo $a;
参考