PHP SNIPPET

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.




Leave a Reply

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