PHP用下划线替换空格 [英] PHP replaces spaces with underlines
本文介绍了PHP用下划线替换空格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个问题,PHP用POST和GET变量中的下划线替换所有空格.
I have the problem, that PHP replaces all spaces with underlines in POST and GET variables.
例如,如果我有URL: http://localhost/proxy.php?user 名称=最大 浏览器会将其转换为 http://localhost/proxy.php?user%20name = Max .
For example if I have the URL: http://localhost/proxy.php?user name=Max the browser will convert it to http://localhost/proxy.php?user%20name=Max.
但是,如果我给出$ _GET参数,则密钥不是用户名,而是用户名!
But if I give the $_GET parameters out, the key is not user name but user_name!
是否有可能改变这种行为?
Is there any possibility to change this behaviour?
推荐答案
查看全文