我试图像这样回显ascii加密文本:
$x = encrypt("hello there");
echo $x;
加密函数返回
hello there
但是在屏幕上显示为"hello there"
如何打印原始ASCII值
您可以在encrypt周围使用htmlentities()
来转义&
$x = htmlentities(encrypt("hello there"));
echo $x;
$x = encrypt("hello there");
echo htmlentities($x);