Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想读取从 URL 发送的所有查询字符串,但我不知道要使用的变量名称$_REQUEST['variable1']。那么我必须做什么?
$_REQUEST['variable1']
$_SERVER['QUERY_STRING']包含您想要的所有查询字符串。
$_SERVER['QUERY_STRING']
你可以这样做 var_dump($_REQUEST); 它会为您将所有内容转储到屏幕上
foreach ($_REQUEST as $var_name => $value) { //your stuff }