PHP Getting query

Getting query

<?
$a = $_SERVER['QUERY_STRING'];
if (isset($a) && $a != "") echo "$a";
?>