Question:

What are superglobal variables in PHP and how are they used?

by  |  earlier

0 LIKES UnLike

What are superglobal variables in PHP and how are they used?

 Tags:

   Report

1 ANSWERS


  1. superglobals are array variables setup by PHP.  This usually contains server, cookie, and client information amongst other things. An easy and quick way to look at them is to just run this code in a blank .php document:

    <?

    phpinfo();

    ?>

    At the bottom block of information you will see the different array variables:

    $_SERVER['....']

    $_COOKIE['......']

    $_SESSION['....']

    and others.

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions