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;
参考
我搜索了几个例子,仍然没有得到。我正在将一个 GOOD 对象列表从控制器传递到 jsp 页面。试图循环列表对象,但它只重复显示一个元素。我应该用豆子吗?如果是,您能否为我的案例提供更具体的示例。
<c:if test="${not empty listGood}"> <c:forEach var="ob"