Home > Backend Development > PHP Tutorial > What are the super global variables in php

What are the super global variables in php

WBOY
Release: 2016-07-25 08:44:06
Original
1170 people have browsed it

The super global variables in php are:

$GLOBALS, an array of all global variables (just like the global keyword, this will allow access to global variables inside a function - for example, in the form $GLOBALS['myvariable'].)
$_SERVER, array of server environment variables
$_GET, the array of variables passed to the script via the GET method
$_POST, the array of variables passed to this script via the POST method
$_COOKIE, cookie variable array
$_FILES, array of variables related to file upload
$_ENV, array of environment variables
$_REQUEST, an array of variables entered by all users, including the input content contained in $_GET, $_POST and $_COOKIE
$_SESSION, session variable array object.

Global variables, what are they, php


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template