Home » Interview » Technology

What is the use of $_Server and $_Env?

Correct Answer: $_SERVER and $_ENV arrays contain different information The information depends on the server and operating system being used Most of the information can be seen of an array for a particular server and operating system The syntax is as follows: foreach($_SERVER as $key =>$value) { echo “Key=$key, Value=$value\n”; }

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion