How to Get Current Page URL using PHP

This php snippet printsĀ current page url. It accepts a Boolean parameter as TRUE/FALSE which acts as a flag for displaying query string. It returns the current site URL.

How to use this function.

Related Post

Leave a Reply

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