<p class="sougouContent"> </p> <p class="tag"> php $_SERVER[argv] </p> http://localhost/demo/demo.php?a=123&b=132 <br> 输出出现: <br> Notice: Undefined index: args in F:\php\www\demo\demo.php on line 35 <br> <br> 这是怎么回事呀,请明白人指点 <br> <h2>回复讨论(解决方案)</h2> <p class="sougouAnswer"> $_SERVER['argv'] 用于 cli 方式下获取命令行参数 <br> $_GET 才是用于获取 url 参数的 </p> <p class="sougouAnswer"> 嗯,谢谢了,刚刚查到一个 <br> http://stackoverflow.com/questions/9270030/serverargv-with-http-get-and-cli-issue <br> 有点明白了,英语不中 </p>