Skip to content

Instantly share code, notes, and snippets.

@seieric
Created June 3, 2022 08:27
Show Gist options
  • Save seieric/7738603c8a9f92eed445ac9a90379438 to your computer and use it in GitHub Desktop.
Save seieric/7738603c8a9f92eed445ac9a90379438 to your computer and use it in GitHub Desktop.
Dump $_SERVER variable in PHP.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8">
<title>PHP $_SERVER dumping</title>
</head>
<body>
<table>
<?php
foreach($_SERVER as $key => $value) {
echo "<tr><td>$key</td><td>$value</td></tr>";
}
?>
</table>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment