!关于php urlencode 里的 "+" 号

WBOY
Release: 2016-06-13 13:28:23
Original
1104 people have browsed it

求助!关于php urlencode 里的 "+" 号
php 里的 "+" 号 被urlencode 编码后,


再用 urldecode 解码,变成了 ' ' ,即空的,也不知道是空格还是空,我看起来像是空格,

总之就不是原来的 '+' 号了,我应该怎么解决才能得到原来的 + 号?

------解决方案--------------------

探讨

我测试也出现这种情况:
PHP code

#发送页面
$param = "1+1";
echo urlencode($param)."
";
#1%2B1
header("Location:./test17.php/?can=".urlencode($param));
#http://path/test/test_csdn/test17.php/?can=1%2B1

#接收页面
i……

------解决方案--------------------
探讨

那这个urldecode 函数有啥用?
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template