What are the commonly used superglobal variables in PHP?

藏色散人
Release: 2023-03-01 18:12:02
Original
5695 people have browsed it

The commonly used superglobal variables in php are: 1. "$GLOBALS"; 2. "$_SERVER"; 3. "$_GET"; 4. "$_POST"; 5. "$_FILES"; 6 , "$_COOKIE"; 7. "$_SESSION"; 8. "$_REQUEST".

What are the commonly used superglobal variables in PHP?

Superglobal variables were introduced in PHP 4.1.0 and are built-in variables that are always available in all scopes.

Commonly used super global variables in php

Super global variables: $GLOBALS, $_SERVER, $_GET, $_POST, $_FILES, $_COOKIE, $ _SESSION, $_REQUEST, $_ENV.

Many predefined variables in PHP are "superglobal", which means they are available throughout the entire scope of a script. They can be accessed within a function or method without executing global $variable;.

Please check the relevant manual content of super global variables for details://m.sbmmt.com/php/php-superglobals.html

The above is the detailed content of What are the commonly used superglobal variables in PHP?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!