Home >Backend Development >PHP Tutorial > base64加号有关问题

base64加号有关问题

WBOY
WBOYOriginal
2016-06-13 13:36:321424browse

base64加号问题
base64后传过来的URL中的+号全部变成了空格链接无法正确跳转,而且不能使用urlencode类的函数,只能在接收页面把字符串中的空格替换为加号,请问如何替换?

注意这里是空格,不是%20

------解决方案--------------------
$url = str_ireplace(' ','+',$var);

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