Hi all,

Can someone tell me in detail what are super global variables and how are they used??

Recommended Answers

All 3 Replies

Superglobals are variables like $PHP_SELF, $_REQUEST, and $_SERVER. They are so called because they're always available in any functions without you having to make a global declaration.

Superglobals are variables like $PHP_SELF, $_REQUEST, and $_SERVER. They are so called because they're always available in any functions without you having to make a global declaration.

thanks :)

Others would be $_GET, $_POST, and $_FILES. For a full list, see here.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.