README.md
December 4, 2022 ยท View on GitHub
Description
This is the easiest way to access all of your GET and/or POST vars. It is the fastest and least amount of code...
More Info
| Submitted On | |
| By | Steven Pratt |
| Level | Intermediate |
| User Rating | 3.8 (19 globes from 5 users) |
| Compatibility | PHP 4.0 |
| Category | Coding Standards |
| World | PHP |
| Archive File |
Source Code
<?
// This is uses the foreach function, which is
// more resource-efficient than while(list...
// The first line grabs the post vars, and
// the second line grabs the get vars...
foreach($_POST as $key=>$val){ $$key = $val; }
foreach($_GET as $key=>$val){ $$key = $val; }
?>