标题:php [urlencode urldecode] 函数 出处:刘新修 时间:Tue, 29 Mar 2016 13:28:01 +0000 作者:刘新修 地址:http://liuxinxiu.com:80/php_urlencode/ 内容: urlencode()编码:对字符串中除了 -_. 之外的所有非字母数字字符都将被替换成百分号(%)后跟两位十六进制数,空格则编码为加号(+)。 urldecode()解码:还原 URL 编码字符串。 示例: urlencode演示 点击连接后地址栏中汉字被编码了: http://localhost/decode.php?par=%E6%BC%94%E7%A4%BAphp-mysql ------------------------------------------------------------------------ //decode.php Generated by Bo-blog 2.1.1 Release