Sr. PHP Programmer Question:
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.
Previous Question | Next Question |
Explain how a PHP session works? | What are Traits? |