If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
foreach ($_GET as $k => $v){
$$k = $v;
}
or
extract( $_GET );
why?
Depends on the scope of your work but i usually try to avoid both methods. Its usually better to just use the cinventional $var = $_GET['key'] in time you will get to see that fetching all the values in $_GET can be bad. I just try to avoid lazy coding at all costs.
Comment