[英]how to echo ascii encrypted text in php
我試圖回顯這樣的ascii加密文本:
$x = encrypt("hello there");
echo $x;
加密函數返回
hello there
但在屏幕上它顯示為“ hello there”。
如何打印原始的ascii值?
您可以在加密周圍使用htmlentities()
來轉義&。
$x = htmlentities(encrypt("hello there"));
echo $x;
$x = encrypt("hello there");
echo htmlentities($x);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.