What is superglobal?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Phper

    What is superglobal?

    Can anyone give a definition of it?
  • Erwin Moller

    #2
    Re: What is superglobal?

    Phper schreef:
    Can anyone give a definition of it?
    Hi,

    [from php.net]


    Superglobals — Superglobals are built-in variables that are always
    available in all scopes
    Description

    Several predefined variables in PHP are "supergloba ls", which means they
    are available in all scopes throughout a script. There is no need to do
    global $variable; to access them within functions or methods.

    These superglobal variables are:

    * $GLOBALS
    * $_SERVER
    * $_GET
    * $_POST
    * $_FILES
    * $_COOKIE
    * $_SESSION
    * $_REQUEST
    * $_ENV
    Regards,
    Erwin Moller

    PS: A tip: go to www.php.net, and use the search form.

    Comment

    • Captain Paralytic

      #3
      Re: What is superglobal?

      On 15 May, 15:19, Erwin Moller
      <Since_humans_r ead_this_I_am_s pammed_too_much @spamyourself.c omwrote:
      Phper schreef:
      >
      Can anyone give a definition of it?
      >
      Hi,
      >
      [from php.net]http://nl3.php.net/manual/en/language.variab les.superglobal s..php
      >
      Superglobals — Superglobals are built-in variables that are always
      available in all scopes
      Description
      >
      Several predefined variables in PHP are "supergloba ls", which means they
      are available in all scopes throughout a script. There is no need to do
      global $variable; to access them within functions or methods.
      >
      These superglobal variables are:
      >
      * $GLOBALS
      * $_SERVER
      * $_GET
      * $_POST
      * $_FILES
      * $_COOKIE
      * $_SESSION
      * $_REQUEST
      * $_ENV
      >
      >
      Regards,
      Erwin Moller
      >
      PS: A tip: go towww.php.net, and use the search form.
      I'm surprised you're still answering this guy Erwin, as his profile
      still claims that he's you.

      Comment

      • Erwin Moller

        #4
        Re: What is superglobal?

        Captain Paralytic schreef:
        On 15 May, 15:19, Erwin Moller
        <Since_humans_r ead_this_I_am_s pammed_too_much @spamyourself.c omwrote:
        >Phper schreef:
        >>
        >>Can anyone give a definition of it?
        >Hi,
        >>
        >[from php.net]http://nl3.php.net/manual/en/language.variab les.superglobal s.php
        >>
        >
        >Superglobals — Superglobals are built-in variables that are always
        >available in all scopes
        >Description
        >>
        >Several predefined variables in PHP are "supergloba ls", which means they
        >are available in all scopes throughout a script. There is no need to do
        >global $variable; to access them within functions or methods.
        >>
        >These superglobal variables are:
        >>
        > * $GLOBALS
        > * $_SERVER
        > * $_GET
        > * $_POST
        > * $_FILES
        > * $_COOKIE
        > * $_SESSION
        > * $_REQUEST
        > * $_ENV
        >>
        >
        >>
        >Regards,
        >Erwin Moller
        >>
        >PS: A tip: go towww.php.net, and use the search form.
        >
        I'm surprised you're still answering this guy Erwin, as his profile
        still claims that he's you.
        Aaargh! Damn.
        I was so busy preparing my first XEN install, I didn't pay enough
        attention. Darn, I felt for the noob.
        My bad. :-(

        Thanks for the quick correction.

        Regards,
        Erwin Moller

        Comment

        Working...