Possible Duplicate:
PHP Get File Name Without File Extension
Using php, how would I remove a certain set of characters from a string. For example I want to go from:
http://www.domain.com/folder/image.gif
to
image
I want to remove everything except the name of the image.