1. Home
  2. Computer Science MCQs
  3. PHP
  4. Which superglobal variable holds information about…

Added 20 Jan 2024

Which superglobal variable holds information about headers, paths, and script locations?

  1. $_GET
  2. $_SERVER Correct answer
  3. $_SESSION
  4. $_GLOBALS

Correct answer

B. $_SERVER

16 views

MCQSEXAM

Explanation

The $_SERVER superglobal array contains information created by the web server.

Reference

Asked in: PHP Certification

https://www.php.net/manual/en/reserved.variables.server.php

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More PHP MCQs

Practise all PHP MCQs

Similar MCQs