Created
July 2, 2012 03:55
-
-
Save saihtaM/3030979 to your computer and use it in GitHub Desktop.
Dumping variables
This file contains 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
import pprint | |
pprint.pprint(globals()) | |
pprint.pprint(locals()) |
This file contains 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
<pre><?php | |
// https://gist.github.com/3030979 | |
// This... well... the code is pretty much self explaining.. | |
echo "<b>POST:\n</b>"; | |
var_dump($_POST); | |
echo "<b>GET:\n</b>"; | |
var_dump($_GET); | |
echo "<b>FILES:\n</b>"; | |
var_dump($_FILES); | |
echo "<b>SESSION:\n</b>"; | |
var_dump($_SESSION); | |
echo "<b>COOKIE:\n</b>"; | |
var_dump($_COOKIE); | |
echo "<b>SERVER:\n</b>"; | |
var_dump($_SERVER); | |
?></pre> |
This file contains 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
print vars(foo),vars(bar) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment