Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Superglobal Variables in PHP

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 106
    Comment on it

    Superglobals variables in php are the built-in array. They are available in every scope. You can access the superglobal variable inside and outside the methods.

    PHP Superglobals variables:

    1. $_COOKIE

      contains values provided to the script via HTTP cookies.

    2. $_GET

      contains variables submitted to the script using HTTP get method.

    3. $_POST

      contains variables submitted to the script using HTTP post method.

    4. $_REQUEST

      combined array containing values from the $_GET, $_POST, and $_COOKIES superglobal arrays.

    5. $_ENV

      contains keys and values set by the scripts shell.

    6. $_FILES

      contains information about uploaded files.

    7. $_SERVER

      contains variables made available by the server.

    8. $GLOBALS

      contains all the global variables associated with the current script.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: