Copy CodeThe code is as follows:
if (Is_array ($HTTP _get_vars))
{
foreach ($HTTP _get_vars as $key = $value)
{
if (Is_array ($HTTP _get_vars[$key]))
{
foreach ($HTTP _get_vars[$key] as $key 2=> $value 2)
{
$myway _var[$key] [$key 2] = $value 2;
}
}
Else
{
$myway _var[$key] = $value;
}
}
}
Read post variable to array
if (Is_array ($HTTP _post_vars))
{
foreach ($HTTP _post_vars as $key = $value)
{
if (Is_array ($HTTP _post_vars[$key]))
{
foreach ($HTTP _post_vars[$key] as $key 2 = $value 2)
{
$myway _var[$key] [$key 2] = $value 2;
}
}
Else
{
$myway _var[$key] = $value;
}
}
}
http://www.bkjia.com/PHPjc/318894.html www.bkjia.com true http://www.bkjia.com/PHPjc/318894.html techarticle Copy the code as follows: if (Is_array ($HTTP _get_vars)) {foreach ($HTTP _get_varsas$key= $value) {if (Is_array ($HTTP _get_vars[$key ]) {foreach ($HTTP _get_vars[$key]as$key2= $value 2) {...