Get current page url in php

In an application, sometimes we need to get the current page URL in php. I mean, the URL shown in the browser. Here is how you can do it.

First, we will declare and use the function as the following:

https://gist.github.com/bappi-d-great/bc4037a4896f0dd233e6

Hope you will like it :)

Leave a Reply

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