For all those people who were like me at one time doing the long process of
$thing1 = $_GET;
$thing2 = $_GET; ...
$thing1 = $_REQUEST;
$thing2 = $_REQUEST; ...
$thing1 = $_POST;
$thing2 = $_POST; ...
$thing1 = $row;
$thing2 = $row; ...
etc.
we probably all have done this at some time.
This is the most important code I own that saves u lots of time from doing the above.
foreach($_GET
foreach($_REQUEST
foreach($_POST
foreach($row
what ever you're getting the value with
foreach($_REQUEST as $key => $value)
$$key = $value;
This takes the value and assigns it to the name if your passing the variable named "thing1", thing1 gets assigned.
therefore after the foreach loop you can access your variables like you could before
$thing1, $thing2, $thing3...
This loop replaces all those calls.