PHP - Superglobals and Web Context
Identify the error in this PHP code snippet that tries to print the visitor's browser info:
echo $_SERVER[HTTP_USER_AGENT];
echo $_SERVER[HTTP_USER_AGENT];
HTTP_USER_AGENT is a valid key in $_SERVER, so the key name is correct.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions