Home >Backend Development >PHP Tutorial >PHP gets all unknown variable names and values_PHP tutorial

PHP gets all unknown variable names and values_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:25:49774browse

################# You can copy this code to test #################



if ($HTTP_GET_VARS)
echo "HTTP_GET_VARS=" . implode(" | ",$HTTP_GET_VARS) . "
";
if ($HTTP_POST_VARS) {
echo "HTTP_POST_VARS=" . implode(" | ",$HTTP_POST_VARS) . "
";
$array = $HTTP_POST_VARS;
echo $array[0];
}
?>


################# http://php4u.yes8.com #################

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/532014.htmlTechArticle################# You can copy this code to test ################# if ($HTTP_GET_VARS) echo "HTTP_GET_VARS=" . implode(" | ",$HTTP_GET_VARS) . " "; if ($HTTP_POST_VARS) { echo "HTT...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn