我有查询
http://mysite.com/?index.php?var=somevalue&activate=others
并且需要像这样作为一个变量传递
$myvar = "var=somevalue&activate=others";
但是没有htaccess!
你需要$_SERVER['QUERY_STRING']
http_build_query($_GET) # Works with all arrays
$_SERVER['QUERY_STRING'] # Works with $_GET only
难道你不认为函数http://php.net/manual/en/function.implode.php会有用吗?然后,您可以将阵列的所有部分粘合在一起。