グローバル変数の表示

$_SERVER{'PHP_SELF'} => /php/info/env.php
$_SERVER{"変数名"}WEB server 変数
Array ( [PHPRC] => php70.ini [PHP_FCGI_CHILDREN] => 1 [PATH] => /usr/local/bin:/usr/bin:/bin [PWD] => /virtual/sengoku/public_html/.fast-cgi-bin [SHLVL] => 0 [PHP_FCGI_MAX_REQUESTS] => 10000 [VIPSHOME] => /usr [SCRIPT_NAME] => /php/info/env.php [REQUEST_URI] => /php/info/env.php [QUERY_STRING] => [REQUEST_METHOD] => GET [SERVER_PROTOCOL] => HTTP/1.1 [GATEWAY_INTERFACE] => CGI/1.1 [REMOTE_PORT] => 57484 [SCRIPT_FILENAME] => /virtual/sengoku/public_html/sen-it.net/php/info/env.php [SERVER_ADMIN] => info@xrea.com [CONTEXT_DOCUMENT_ROOT] => /virtual/sengoku/public_html/sen-it.net [CONTEXT_PREFIX] => [REQUEST_SCHEME] => http [DOCUMENT_ROOT] => /virtual/sengoku/public_html/sen-it.net [REMOTE_ADDR] => 54.146.195.24 [SERVER_PORT] => 80 [SERVER_ADDR] => 150.95.8.101 [SERVER_NAME] => sen-it.net [SERVER_SOFTWARE] => Apache [SERVER_SIGNATURE] => [HTTP_ACCEPT_ENCODING] => gzip [HTTP_CONNECTION] => close [HTTP_HOST] => sen-it.net [HTTP_IF_MODIFIED_SINCE] => Mon, 20 Aug 2018 22:57:09 CEST [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 [HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/) [GEM_HOME] => /usr/local/rvm/gems/ruby-2.3.0 [MM_COUNTRY_CODE] => US [MMDB_INFO] => result found [MMDB_ADDR] => 54.146.195.24 [UNIQUE_ID] => W@tSxNpO1otz1ty94Ck7fAAAARI [FCGI_ROLE] => RESPONDER [PHP_SELF] => /php/info/env.php [REQUEST_TIME_FLOAT] => 1542148804.0129 [REQUEST_TIME] => 1542148804 )
$_ENV{"変数名"}環境変数
Array ( )
$_SESSION{"変数名"} セッション変数

$_POST{"変数名"} POSTメソッドによる入力
Array ( )
$_GET{"変数名"} GETメソッドによる入力
Array ( )
$_REQUEST{"変数名"} ユーザ入力
Array ( )
$_COOKIE{"変数名"} Cookieによる入力
Array ( )
$_FILES{"変数名"} ファイルアップロード処理用情報
Array ( )
source code = print_r($_SERVER);
source code = print_r($_ENV);