Server Superglobal

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Server Superblogal</title>

</head>
<body>

<?php

get_server_superglobals();

function get_server_superglobals(){?>
<style type="text/css">
.superglobals{font-family:"Courier New", Courier, monospace; font-size:14px; padding:8px;}
.superglobals tr td{border:1px solid #E4E4E4; padding:2px 6px; margin-right:10px;}
.superglobals tr th{border:1px solid #444; padding:2px 6px; margin-right:10px; background-color:#ccc;}
.superglobals tr:hover td{background-color:#E4E4E4;}
.superglobals .snippet{font-size:10px;}
.superglobals .middle{width:500px; overflow:auto;}
</style>
<?php
$constants = array(
'argv',
'argc',
'AUTH_TYPE',
'DOCUMENT_ROOT',
'GATEWAY_INTERFACE',
'HTTP_ACCEPT',
'HTTP_ACCEPT_CHARSET',
'HTTP_ACCEPT_ENCODING',
'HTTP_ACCEPT_LANGUAGE',
'HTTP_CONNECTION',
'HTTP_COOKIE',
'HTTP_HOST',
'HTTP_IF_MODIFIED_SINCE',
'HTTP_KEEP_ALIVE',
'HTTP_REFERER',
'HTTP_USER_AGENT',
'HTTPS',
'ORIG_PATH_INFO',
'PATH',
'PATH_INFO',
'PATH_TRANSLATED',
'PHP_AUTH_DIGEST',
'PHP_AUTH_USER',
'PHP_AUTH_PW',
'PHP_SELF',
'QUERY_STRING',
'REDIRECT_STATUS',
'REMOTE_ADDR',
'REMOTE_HOST',
'REMOTE_PORT',
'REQUEST_METHOD',
'REQUEST_TIME',
'REQUEST_URI',
'SCRIPT_FILENAME',
'SCRIPT_NAME',
'SERVER_ADDR',
'SERVER_ADMIN',
'SERVER_NAME',
'SERVER_PORT',
'SERVER_SIGNATURE',
'SERVER_SOFTWARE',
'SERVER_PROTOCOL',
'UNIQUE_ID',
);
?>

<table class="superglobals">
<tr>
<th>Constant</th>
<th><div class="middle">Server Superglobal Output</div></th>
<th>Snippet</th>
</tr>
<?php
foreach($constants as $constant){?>
<tr>
<td><strong><?php echo $constant ?></strong></td>
<td><div class="middle"><?php echo $_SERVER[$constant] ?></div></td>
<td class="snippet"><?php echo "$_SERVER['" . $constant . "']" ?></td>
</tr>
<?php
}
?>
</table>
<?php
}
?>

</body>
</html>