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:

Hope you will like it :)

Leave a Reply

%d bloggers like this: