Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我有网址:
http://localhost/mypage.php?my.var.is=Value echo $_GET['my.var.is_this'];
上面的 echo 语句似乎没有打印出“Value”。如何正确访问此参数?
变量名中的点和空格被转换为下划线。例如<input name="a.b" />变成$_REQUEST["a_b"]. – http://php.net/variables.external
变量名中的点和空格被转换为下划线。例如<input name="a.b" />变成$_REQUEST["a_b"].
<input name="a.b" />
$_REQUEST["a_b"]
– http://php.net/variables.external