[英]how to echo ascii encrypted text in php
I am trying to echo an ascii crypted text like this: 我试图回显这样的ascii加密文本:
$x = encrypt("hello there");
echo $x;
the encrypt function returns 加密函数返回
hello there
but on the screen it is printed as "hello there". 但在屏幕上它显示为“ hello there”。
how can i print the original ascii value ? 如何打印原始的ascii值?
You can use htmlentities()
around encrypt to escape the &. 您可以在加密周围使用
htmlentities()
来转义&。
$x = htmlentities(encrypt("hello there"));
echo $x;
$x = encrypt("hello there");
echo htmlentities($x);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.