logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • Explain Superglobal variables in PHP .


  • Correct Answer
  • To access the global data which is originating externally, the super globals are used The superglobals are available as arrays These superglobals represents the data from URLs, HTML forms, cookies, sessions and also the web server For this purpose, $HTTP_GET_VARS, $HTTP_POST_VARS are used The super globals are pretty good enough to be used in functions The following are the list of super globals $_GET, $_POST, $_COOKIE;$_REQUEST, $_SERVER, $_SESSION, $_ENV, $_FILE Another PHP Superglobal, called $GLOBALS; is available for persisting every variable with global scope 


  • Technology problems


    Search Results


    • 1. Explain how to work with Permissions in PHP.
    • Discuss
    • 2. What is the difference between $argv and $argc? Give example?
    • Discuss
    • 3. What is the use of $_Server and $_Env?
    • Discuss
    • 4. What is the use of super-global arrays in PHP?
    • Discuss
    • 5. How can we increase the execution time of a php script?
    • Discuss
    • 6. Explain how to send large amounts of emails with php.
    • Discuss
    • 7. Explain how to store the uploaded file to the final location.
    • Discuss
    • 8. Explain how to create random passwords.
    • Discuss
    • 9. What type of inheritance that PHP supports? Provide an example.
    • Discuss
    • 10. Explain when to use GET or POST. Provide example for both the ways.
    • Discuss


    Comments

    There are no comments.

Enter a new Comment