do you have a class or a function i can use to get the current web page url i am visiting

for example, this page the url is:

http://www.wallpaperama.com/forums/how-to-get-full-url-current-page-in-php-function-class-snippet-t5831.html

is there a function in php to get his? if so can you share with me

thanks