$ _SERVER ['QUERY_STRING']作为一个变量

I have the query

http://mysite.com/?index.php?var=somevalue&activate=others

and need to be passed as ONE variable like this

$myvar = "var=somevalue&activate=others";

But without htaccess!

You need $_SERVER['QUERY_STRING']

http_build_query($_GET) # Works with all arrays
$_SERVER['QUERY_STRING'] # Works with $_GET only

Don't you think the function http://php.net/manual/en/function.implode.php 'd be useful to do this. You can then glue all the pieces of the array together.