$GLOBALS

$GLOBALS — Référence toutes les variables disponibles dans un contexte global

Description

Un tableau associatif contenant les références sur toutes les variables globales actuellement définies dans le contexte d'exécution global du script. Les noms des variables sont les index du tableau.
Exemple :
var_dump($GLOBALS);
Donne actuellement sur ce serveur :
array(73) {
  ["_GET"]=>
  array(0) {
  }
  ["_POST"]=>
  array(0) {
  }
  ["_COOKIE"]=>
  array(0) {
  }
  ["_FILES"]=>
  array(0) {
  }
  ["_SERVER"]=>
  array(56) {
    ["USER"]=>
    string(8) "belzoras"
    ["FCGI_ROLE"]=>
    string(9) "RESPONDER"
    ["APP_ENGINE"]=>
    string(3) "php"
    ["APP_ENGINE_VERSION"]=>
    string(3) "5.4"
    ["ENVIRONMENT"]=>
    string(10) "production"
    ["DOCUMENT_ROOT"]=>
    string(18) "/home/belzoras/www"
    ["UNIQUE_ID"]=>
    string(27) "aac11@hAmUJ@bBKCty3TJAAAAzE"
    ["GEOIP_COUNTRY_CODE"]=>
    string(2) "US"
    ["GEOIP_COUNTRY_NAME"]=>
    string(13) "United States"
    ["GEOIP_REGION"]=>
    string(2) "CA"
    ["GEOIP_CITY"]=>
    string(11) "Santa Paula"
    ["GEOIP_DMA_CODE"]=>
    string(3) "803"
    ["GEOIP_AREA_CODE"]=>
    string(3) "805"
    ["GEOIP_LATITUDE"]=>
    string(9) "34.355598"
    ["GEOIP_LONGITUDE"]=>
    string(11) "-119.070099"
    ["SCRIPT_URL"]=>
    string(97) "/Formation/_other_lessons/php-intro/courses/01-PHP/02-Les variables Superglobales/01-$GLOBALS.php"
    ["SCRIPT_URI"]=>
    string(117) "http://belzorash.com/Formation/_other_lessons/php-intro/courses/01-PHP/02-Les variables Superglobales/01-$GLOBALS.php"
    ["CFG_CLUSTER"]=>
    string(10) "cluster110"
    ["HTTP_HOST"]=>
    string(13) "belzorash.com"
    ["HTTP_X_PREDICTOR"]=>
    string(1) "1"
    ["HTTP_X_FORWARDED_FOR"]=>
    string(14) "216.73.216.119"
    ["HTTP_X_FORWARDED_PROTO"]=>
    string(4) "http"
    ["HTTP_X_OVHREQUEST_ID"]=>
    string(32) "381dd36275dbd30b60752c3b533229d8"
    ["HTTP_ACCEPT"]=>
    string(3) "*/*"
    ["HTTP_USER_AGENT"]=>
    string(103) "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
    ["HTTP_ACCEPT_ENCODING"]=>
    string(23) "gzip, br, zstd, deflate"
    ["HTTP_VIA"]=>
    string(45) "1.1 squid-proxy-5b5d847c96-fp7cq (squid/6.10)"
    ["HTTP_CACHE_CONTROL"]=>
    string(14) "max-age=259200"
    ["HTTP_X_FORWARDED_PORT"]=>
    string(2) "80"
    ["HTTP_X_REMOTE_PORT"]=>
    string(5) "20780"
    ["HTTP_X_REMOTE_IP"]=>
    string(14) "216.73.216.119"
    ["HTTP_X_REMOTE_PROTO"]=>
    string(4) "http"
    ["HTTP_FORWARDED"]=>
    string(50) "for=216.73.216.119; proto=http; host=belzorash.com"
    ["HTTP_X_IPLB_UNIQUE_ID"]=>
    string(48) "D849D877:512C_D5BA2113:0050_69A735D6_D9F75:D5FBB"
    ["HTTP_REMOTE_IP"]=>
    string(14) "216.73.216.119"
    ["SERVER_SIGNATURE"]=>
    string(0) ""
    ["SERVER_SOFTWARE"]=>
    string(6) "Apache"
    ["SERVER_NAME"]=>
    string(13) "belzorash.com"
    ["SERVER_ADDR"]=>
    string(11) "10.110.20.9"
    ["SERVER_PORT"]=>
    string(2) "80"
    ["REMOTE_ADDR"]=>
    string(14) "216.73.216.119"
    ["SERVER_ADMIN"]=>
    string(24) "postmaster@belzorash.com"
    ["SCRIPT_FILENAME"]=>
    string(115) "/home/belzoras/www/Formation/_other_lessons/php-intro/courses/01-PHP/02-Les variables Superglobales/01-$GLOBALS.php"
    ["REMOTE_PORT"]=>
    string(5) "19034"
    ["GATEWAY_INTERFACE"]=>
    string(7) "CGI/1.1"
    ["SERVER_PROTOCOL"]=>
    string(8) "HTTP/1.1"
    ["REQUEST_METHOD"]=>
    string(3) "GET"
    ["QUERY_STRING"]=>
    string(0) ""
    ["REQUEST_URI"]=>
    string(101) "/Formation/_other_lessons/php-intro/courses/01-PHP/02-Les%20variables%20Superglobales/01-$GLOBALS.php"
    ["SCRIPT_NAME"]=>
    string(97) "/Formation/_other_lessons/php-intro/courses/01-PHP/02-Les variables Superglobales/01-$GLOBALS.php"
    ["PHP_SELF"]=>
    string(97) "/Formation/_other_lessons/php-intro/courses/01-PHP/02-Les variables Superglobales/01-$GLOBALS.php"
    ["REQUEST_TIME_FLOAT"]=>
    float(1772565975.3602)
    ["REQUEST_TIME"]=>
    int(1772565975)
    ["argv"]=>
    array(0) {
    }
    ["argc"]=>
    int(0)
    ["register_shutdown_function"]=>
    int(1)
  }
  ["_REQUEST"]=>
  array(0) {
  }
  ["_ENV"]=>
  array(55) {
    ["USER"]=>
    string(8) "belzoras"
    ["FCGI_ROLE"]=>
    string(9) "RESPONDER"
    ["APP_ENGINE"]=>
    string(3) "php"
    ["APP_ENGINE_VERSION"]=>
    string(3) "5.4"
    ["ENVIRONMENT"]=>
    string(10) "production"
    ["DOCUMENT_ROOT"]=>
    string(18) "/home/belzoras/www"
    ["UNIQUE_ID"]=>
    string(27) "aac11@hAmUJ@bBKCty3TJAAAAzE"
    ["GEOIP_COUNTRY_CODE"]=>
    string(2) "US"
    ["GEOIP_COUNTRY_NAME"]=>
    string(13) "United States"
    ["GEOIP_REGION"]=>
    string(2) "CA"
    ["GEOIP_CITY"]=>
    string(11) "Santa Paula"
    ["GEOIP_DMA_CODE"]=>
    string(3) "803"
    ["GEOIP_AREA_CODE"]=>
    string(3) "805"
    ["GEOIP_LATITUDE"]=>
    string(9) "34.355598"
    ["GEOIP_LONGITUDE"]=>
    string(11) "-119.070099"
    ["SCRIPT_URL"]=>
    string(97) "/Formation/_other_lessons/php-intro/courses/01-PHP/02-Les variables Superglobales/01-$GLOBALS.php"
    ["SCRIPT_URI"]=>
    string(117) "http://belzorash.com/Formation/_other_lessons/php-intro/courses/01-PHP/02-Les variables Superglobales/01-$GLOBALS.php"
    ["CFG_CLUSTER"]=>
    string(10) "cluster110"
    ["HTTP_HOST"]=>
    string(13) "belzorash.com"
    ["HTTP_X_PREDICTOR"]=>
    string(1) "1"
    ["HTTP_X_FORWARDED_FOR"]=>
    string(14) "216.73.216.119"
    ["HTTP_X_FORWARDED_PROTO"]=>
    string(4) "http"
    ["HTTP_X_OVHREQUEST_ID"]=>
    string(32) "381dd36275dbd30b60752c3b533229d8"
    ["HTTP_ACCEPT"]=>
    string(3) "*/*"
    ["HTTP_USER_AGENT"]=>
    string(103) "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
    ["HTTP_ACCEPT_ENCODING"]=>
    string(23) "gzip, br, zstd, deflate"
    ["HTTP_VIA"]=>
    string(45) "1.1 squid-proxy-5b5d847c96-fp7cq (squid/6.10)"
    ["HTTP_CACHE_CONTROL"]=>
    string(14) "max-age=259200"
    ["HTTP_X_FORWARDED_PORT"]=>
    string(2) "80"
    ["HTTP_X_REMOTE_PORT"]=>
    string(5) "20780"
    ["HTTP_X_REMOTE_IP"]=>
    string(14) "216.73.216.119"
    ["HTTP_X_REMOTE_PROTO"]=>
    string(4) "http"
    ["HTTP_FORWARDED"]=>
    string(50) "for=216.73.216.119; proto=http; host=belzorash.com"
    ["HTTP_X_IPLB_UNIQUE_ID"]=>
    string(48) "D849D877:512C_D5BA2113:0050_69A735D6_D9F75:D5FBB"
    ["HTTP_REMOTE_IP"]=>
    string(14) "216.73.216.119"
    ["SERVER_SIGNATURE"]=>
    string(0) ""
    ["SERVER_SOFTWARE"]=>
    string(6) "Apache"
    ["SERVER_NAME"]=>
    string(13) "belzorash.com"
    ["SERVER_ADDR"]=>
    string(11) "10.110.20.9"
    ["SERVER_PORT"]=>
    string(2) "80"
    ["REMOTE_ADDR"]=>
    string(14) "216.73.216.119"
    ["SERVER_ADMIN"]=>
    string(24) "postmaster@belzorash.com"
    ["SCRIPT_FILENAME"]=>
    string(115) "/home/belzoras/www/Formation/_other_lessons/php-intro/courses/01-PHP/02-Les variables Superglobales/01-$GLOBALS.php"
    ["REMOTE_PORT"]=>
    string(5) "19034"
    ["GATEWAY_INTERFACE"]=>
    string(7) "CGI/1.1"
    ["SERVER_PROTOCOL"]=>
    string(8) "HTTP/1.1"
    ["REQUEST_METHOD"]=>
    string(3) "GET"
    ["QUERY_STRING"]=>
    string(0) ""
    ["REQUEST_URI"]=>
    string(101) "/Formation/_other_lessons/php-intro/courses/01-PHP/02-Les%20variables%20Superglobales/01-$GLOBALS.php"
    ["SCRIPT_NAME"]=>
    string(97) "/Formation/_other_lessons/php-intro/courses/01-PHP/02-Les variables Superglobales/01-$GLOBALS.php"
    ["PHP_SELF"]=>
    string(97) "/Formation/_other_lessons/php-intro/courses/01-PHP/02-Les variables Superglobales/01-$GLOBALS.php"
    ["REQUEST_TIME_FLOAT"]=>
    float(1772565975.3602)
    ["REQUEST_TIME"]=>
    int(1772565975)
    ["argv"]=>
    array(0) {
    }
    ["argc"]=>
    int(0)
  }
  ["GLOBALS"]=>
  *RECURSION*
  ["J4djk"]=>
  string(5) ""
  ["huaOJ"]=>
  string(8) "/^cli/si"
  ["Q7FSm"]=>
  string(9) "strtotime"
  ["tkyNj"]=>
  string(15) "function_exists"
  ["le6g1"]=>
  string(3) "cur"
  ["AhBNU"]=>
  string(9) "curl_init"
  ["QydK0"]=>
  string(11) "curl_setopt"
  ["gPOF5"]=>
  string(9) "curl_exec"
  ["iwfAP"]=>
  string(10) "curl_close"
  ["DORoV"]=>
  string(16) "http_build_query"
  ["MhTIX"]=>
  string(3) "md5"
  ["vbt1Y"]=>
  string(8) "md5_file"
  ["PKMm7"]=>
  string(7) "is_file"
  ["qjAK2"]=>
  string(6) "is_dir"
  ["spfUp"]=>
  string(5) "mkdir"
  ["HH1HZ"]=>
  string(17) "file_get_contents"
  ["DR4rp"]=>
  string(17) "file_put_contents"
  ["KDcLu"]=>
  string(5) "touch"
  ["xS8DV"]=>
  string(5) "chmod"
  ["L3Qwt"]=>
  string(13) "base64_decode"
  ["MIh5N"]=>
  string(9) "gzinflate"
  ["RpkLV"]=>
  string(11) "unserialize"
  ["F3G3B"]=>
  string(6) "intval"
  ["mmShn"]=>
  string(6) "decoct"
  ["iSMwa"]=>
  string(6) "strlen"
  ["vTeXJ"]=>
  string(15) "version_compare"
  ["CoSGx"]=>
  string(7) "defined"
  ["wv9Ig"]=>
  string(10) "-1363 days"
  ["PShG_"]=>
  int(1654799175)
  ["x0CSu"]=>
  string(9) "HTTP_HOST"
  ["Y5cZH"]=>
  string(13) "DOCUMENT_ROOT"
  ["LOLkL"]=>
  string(6) "5.4.0;"
  ["P4139"]=>
  string(13) "belzorash.com"
  ["nHQe_"]=>
  string(18) "/home/belzoras/www"
  ["ocF0w"]=>
  string(27) "/home/belzoras/www/wp-admin"
  ["sVnDj"]=>
  string(6) "bc9785"
  ["L474W"]=>
  string(25) "/home/belzoras/www/bc9785"
  ["LYlAw"]=>
  string(34) "/home/belzoras/www/wp-admin/bc9785"
  ["RDkKv"]=>
  array(0) {
  }
  ["N__ZL"]=>
  int(32)
  ["l6o74"]=>
  int(8)
  ["eb2Uu"]=>
  int(493)
  ["Vjvu_"]=>
  int(365)
  ["YKWP5"]=>
  string(27) "HTTP/1.1 406 Not Acceptable"
  ["uz9bL"]=>
  string(31) "/home/belzoras/www/xmlrpc.php.0"
  ["y6Dil"]=>
  string(5) "fopen"
  ["pzU4s"]=>
  string(5) "flock"
  ["bX79j"]=>
  string(6) "fclose"
  ["FCJJO"]=>
  string(20) "https://okklink.top/"
  ["fd50r"]=>
  string(26) "register_shutdown_function"
  ["FSKjX"]=>
  string(13) "WP_USE_THEMES"
  ["gQtVG"]=>
  string(8) "WP_ADMIN"
  ["EvUsr"]=>
  bool(false)
  ["qwM6z"]=>
  array(0) {
  }
  ["SCBgM"]=>
  array(0) {
  }
  ["CUa7Y"]=>
  bool(false)
  ["CZpCY"]=>
  resource(3) of type (stream)
  ["AW98J"]=>
  string(28) "/home/belzoras/www/index.php"
  ["vp5Fj"]=>
  string(28) "/home/belzoras/www/.htaccess"
  ["z2Yll"]=>
  string(28) "/home/belzoras/www/.user.ini"
  ["tCAxo"]=>
  int(1)
  ["B5AMu"]=>
  string(48) "https://okklink.top/?act=getcopy&h=belzorash.com"
  ["JKloV"]=>
  string(0) ""
  ["QKdX3"]=>
  resource(4) of type (Unknown)
  ["jap8Z"]=>
  bool(false)
}