Home  >  Article  >  Backend Development  >  get步骤传递值,值是不是不能有空格

get步骤传递值,值是不是不能有空格

WBOY
WBOYOriginal
2016-06-13 12:52:011119browse

get方法传递值,值是不是不能有空格?
比如:www.163.com?string=abc 123&a=32
这样行吗?用_GET["string"]能得到"abc 123"吗?

如果不可以,那我怎么用get方法传递有空格的字符串呢?


------解决方案--------------------
用_GET["string"]能得到"abc 123"
------解决方案--------------------
完全可以。新手要多多加油哦。
------解决方案--------------------
那是因为你没有用引号括起的原因
 get步骤传递值,值是不是不能有空格
不括起就被曲解为
 get步骤传递值,值是不是不能有空格
显然就不对了

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