Skip to content

Instantly share code, notes, and snippets.

@jpalala
Created August 17, 2011 09:44
Show Gist options
  • Save jpalala/1151210 to your computer and use it in GitHub Desktop.
Save jpalala/1151210 to your computer and use it in GitHub Desktop.
print post array and auto generate variables for each input
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