Sr. PHP Programmer Question:

What is the purpose of $_SERVER variable in PHP?

Senior PHP Programmer Interview Question
Senior PHP Programmer Interview Question

Answer:

$_SERVER − This is an array containing information such as headers, paths, and script locations. The entries in this array are created by the web server. There is no guarantee that every web server will provide any of these. See next section for a complete list of all the SERVER variables.


Previous QuestionNext Question
Explain how a PHP session works?What are Traits?