PHP Code Function Get Image Name from URL

PHP Code Function to Take a URL and Return Just the Name of the Image (or Filename, if not image) and Return the Image Name with Dashes Converted to Spaces and Non Alpha Characters Removed

Home Short:

The following php code function takes a full url and returns the filename or image name and makes the filename or image name more presentable or user friendly by turning dashes - or underscores _ (which are ususally used to separate meaningful words that make up the filename or image name) into spaces and removing any non letters from the filename.

For examples ...

... becomes ...

S
H
A
R
E