I am trying to echo an ascii crypted text like this:
$x = encrypt("hello there");
echo $x;
the encrypt function returns
hello there
but on the screen it is printed as "hello there".
how can i print the original ascii value ?
You can use htmlentities()
around encrypt to escape the &.
$x = htmlentities(encrypt("hello there"));
echo $x;
$x = encrypt("hello there");
echo htmlentities($x);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.