假如一个url为: /index.php?abc.xyz=ppp
php获取到的$_GET数据会是'abc_xyz'=>ppp,而不是'abc.xyz'=>ppp,原因是“点”不属于合法的php命名字符,点是字符串连接符,而$abc.xyz将造成解释器错误。
详细可参见:http://stackoverflow.com/questions/68651/get-php-to-stop-replacing-characters-in-get-or-post-arrays
假如一个url为: /index.php?abc.xyz=ppp
php获取到的$_GET数据会是'abc_xyz'=>ppp,而不是'abc.xyz'=>ppp,原因是“点”不属于合法的php命名字符,点是字符串连接符,而$abc.xyz将造成解释器错误。
详细可参见:http://stackoverflow.com/questions/68651/get-php-to-stop-replacing-characters-in-get-or-post-arrays