Created this to provide a solution for someone who wanted to create a page with a list of local files, stripped of all their extensions. Initially, my solution involved string manipulation functions, and a list of extensions. It turned out that the list of possible file types was too big to maintain. That's when I discovered the php pathinfo function.
I decided to preserve my work for keep's sake. Both functions will only remove the specified extensions from any file, the second one will optionally remove any extension, if called without specifying any. I figure there may be situations where only certain types of files should be stripped of their extensions.