The $_SERVER superglobal in PHP is often used to get the URL of the current page.

  • TRUE
  • FALSE
The statement is true. By using $_SERVER['REQUEST_URI'], you can retrieve the URL of the current page. The 'REQUEST_URI' key within the $_SERVER superglobal stores the path and query string of the requested URL. This information can be useful for various purposes, such as generating dynamic navigation menus, redirecting users, or capturing analytics data. Learn more: https://www.php.net/manual/en/reserved.variables.server.php
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *