How to get the Current URL in PHP ?
In PHP, Getting the current URL is a common requirement for various tasks such as building dynamic navigation menus, tracking user activity, or generating links. PHP provides several superglobal arrays and functions to retrieve different parts of the URL, including the protocol, domain, path, query