Get Current Page URL using PHP

0

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.

 

Share.
 

About Author

Entrepreneur & Dreamer

I am a passionate Software Professional, love to learn and share my knowledge with others.

Software is the hardware of my life.

Leave A Reply

CommentLuv badge

Get more stuff like this
in your inbox

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.