Created
August 17, 2011 09:44
-
-
Save jpalala/1151210 to your computer and use it in GitHub Desktop.
print post array and auto generate variables for each input
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
print_r($_POST); | |
foreach($_POST as $v => $k) | |
{ | |
echo '\$'. $v . ' = $_POST[\'' . $v . '\']<br>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment