Created
May 28, 2015 17:33
-
-
Save olavmrk/ff5f9b71c98294fae825 to your computer and use it in GitHub Desktop.
Dump PHP superglobals
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header('Content-Type: text/plain; charset=utf-8'); | |
foreach (array('_GET', '_POST', '_REQUEST', '_COOKIE', '_SERVER', '_ENV') as $v) { | |
echo '$' . $v . ' = ' . var_export($$v, TRUE) . ";\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment