PHP has several superglobal variables that are always available in every scope. They provide access to server information, files, cookies, sessions, and environment variables.
PHP Superglobals
$_SERVER— Server and execution environment information (IP, user agent, request method)$_FILES— File upload information (name, type, size, tmp_name)$_COOKIE— Cookies sent by the browser$_SESSION— Session data (requires session_start())$_ENV— Environment variables
Tip: Superglobals are always available — no need to declare them with global keyword.