Predefined variables
http://www.php.net/manual/en/language.variables.predefined.php#language.variables.predefined.php

解决方案 »

  1.   

    $GLOBAL[]数组你可以写一个程序用来列表数组里面的内容。
      

  2.   

    例子:http://redv.51.net/__study/globals.php
    程序代码:
    <?php
    reset($GLOBALS);
    while(list($key,$var)=each($GLOBALS))
    {
    print"$key=>$var\n<br>\n";
    }
    ?>
      

  3.   

    <?php
    foreach($HTTP_SERVER_VARS as $mykey=>$myvalue){
    echo  $mykey."  => ".$myvalue."<br>";
    }
    ?>