Predefined Variables

Predefined Variables

  • PHP provides a large number of predefined variables to any script which it runs.
  • Many of these variables, however, cannot be fully documented as they are dependent upon which server is running, the version and setup of the server, and other factors.
  • Some of these variables will not be available when PHP is run on the command line.
  • From version 4.1.0 onward, PHP provides an additional set of predefined arrays containing variables from the web server (if applicable), the environment, and user input.

Related concepts

Predefined Variables

Predefined Variables — Structure map

Clickable & Draggable!

Predefined Variables — Related pages: