Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • What is superglobals Variables in php. ?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 125
    Comment on it

    There are many predefined variables in PHP which are "superglobals", that denotes they are always

    accessible, regardless of scope.
    and you can access them according to your need from any function.

    So, there are 5 main superglobal variables in php
    These are following:

    1. $GLOBALS:-This is a PHP super global variable which is utilized to access global variables from anywhere additionally from within functions or methods.
    2. $_SERVER:-This is a another PHP super ecumenical variable that is holds information related headers, paths, and script locations.
    3. $_REQUEST:-$_REQUEST:-$_REQUEST is basically used for collecting data after submitting an HTML form.
    4. $_POST:-$_POST is basically used to accumulate form data after submitting an HTML form .
    5. _GET:-PHP $_GET can also be used to collect form data after submitting an HTML form with method="get".

 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: