Sr. PHP Programmer Question:

What is the purpose of $_SERVER variable in PHP?

Tweet Share WhatsApp

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.

Read All 202 Senior PHP Programmer Questions
Previous QuestionNext Question
Explain how a PHP session works?What are Traits?