Tutorial for Super Global Variables in PHP

What is Super Global Variables in PHP?

These are PHP array variables with specific definitions that make it simple to retrieve information about a request or its context. The super global variables may be found all across your script. These variables can be accessible from any function, class, or file without the need to do any further steps, such as defining a global variable. They are mostly employed in applications to save and retrieve data from one page to the next.

PHP Variables and scopes

The following are the PHP superglobal variables:

  • $_SERVER
  • $_POST
  • $_GET
  • $_FILES
  • $_ENV
  • $_COOKIE
PHP 5 Global Variables - Superglobals - MEGATEK ICT ACADEMY
Ashwani Kumar
Latest posts by Ashwani Kumar (see all)
Tagged : / / / / / / /
0 0 votes
Article Rating
Notify of

Inline Feedbacks
View all comments
Would love your thoughts, please comment.x