Tuesday, July 12, 2011

About predefined global variables in PHP

One thing that makes PHP so flexible and easy to use is that it has several predefined variables which are global and accessible from whichever PHP script you write.

Here is a complete list of them:


    You can get a full reference of them on this page superglobals
    The most commonly used are these: $GLOBALS, $_POST, $_GET, $_REQUEST, $_COOKIE, $_SERVER and $_FILES. So I will explain these in different posts and show some examples.

    No comments:

    Post a Comment