Which PHP superglobal contains information about headers, paths, and script locations?
- $_SERVER
- $_ENV
- $_GLOBALS
- $_LOCALS
The $_SERVER superglobal in PHP contains an array of information about the server environment, including headers, paths, and script locations. It's often used for server-related tasks.
Loading...
Related Quiz
- To ensure a file resource is closed and memory is freed up, you should use the ________ function in PHP.
- In a PHP loop, break will ______ the loop, while continue will only skip the current iteration and proceed with the next one.
- Which of the following are types of loops in PHP?
- What is the primary purpose of using transactions in database operations?
- What are some steps you might take when creating a MySQL table using PHP?