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

base64加号有关问题

WBOY
Release: 2016-06-13 10:06:17
Original
1095 people have browsed it

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

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

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

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