Home >Backend Development >PHP Tutorial >img 显示有关问题

img 显示有关问题

WBOY
WBOYOriginal
2016-06-13 12:20:431269browse

img 显示问题
我有一个图片命名为test(123#).jpg但是我用img 显示有关问题 却无法显示,当我把#号去掉就可以显示了,貌似#把我图片的路径截断了,应该怎么处理呢?请各位大虾指点
------解决思路----------------------
echo urlencode('#'); //%23

# 在 url 中是锚点标志,不转义是不行的

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn