don't thank me, thank php.net =)
http://us2.php.net/manual/en/function.basename.php
it was a trick! i copied the explanation word for word and the example was from that page too!
that is my point, php.net is your friend. all i did was type 'basename' and hit search.