Recently I saw a clever method, the principle is
$var_a ='var_b';
$$var_a ='test';
Then echo $var_b; is 'test'
So it can be handled like this
Copy code The code is as follows:
foreach(array('_COOKIE', '_POST', '_GET') as $_request)
{
foreach($$_request as $_key => $_value)
{
$_key{0 } != '_' && $$_key = addslashes($_value);
}
}
The above introduces a concise way of using post and get in powerquest partitionmagic php, including the content of powerquest partitionmagic. I hope it will be helpful to friends who are interested in PHP tutorials.