To get the current page full url, You need to use superglobal variable $_SERVER. The $_SERVER is a built-in variable of PHP, which is used to get the current page URL. It is a superglobal variable, means it is always available in all scope
HYPER ERA PVT.LTD | TERMS & CONDITIONS