Sr. PHP Programmer Question:
Download Questions PDF

What is the purpose of $_SERVER variable in PHP?

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.

Download Senior PHP Programmer Interview Questions And Answers PDF

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