Curriculum
Course: PHP Basic
Login

Curriculum

PHP Basic

PHP Install

0/1

PHP Casting

0/1

PHP Constants

0/1

PHP Magic Constants

0/1

PHP Operators

0/1

PHP Reference

0/276
Text lesson

Superglobals

PHP Global Variables – Superglobals

In PHP, certain predefined variables are termed “superglobals,” meaning they are always accessible regardless of scope. You can use them from any function, class, or file without any special steps.

The PHP superglobal variables include:

  • $GLOBALS
  • $_SERVER
  • $_REQUEST
  • $_POST
  • $_GET
  • $_FILES
  • $_ENV
  • $_COOKIE
  • $_SESSION

The upcoming chapters will discuss some of these superglobals, with the remaining ones explained in later chapters.