urlencode()编码:对字符串中除了 -_. 之外的所有非字母数字字符都将被替换成百分号(%)后跟两位十六进制数,空格则编码为加号(+)。urldecode()解码:还原 URL 编码字符串。示例:
urlencode演示
点击连接后地址栏中汉字被编码了:http://localhost/decode.php?par=%E6%BC%94%E7%A4%BAphp-mysql------------------------------------------------------------------------//decode.php顶一下

(0)
0%
踩一下

(0)
0%
- 相关评论
- 我要评论
-