Here's a useful function to strip the extension off of a filename.
if($ext !== false) { $name = substr($name, 0, -strlen($ext)); } return $name; |
Here's a useful function to strip the extension off of a filename.
if($ext !== false) { $name = substr($name, 0, -strlen($ext)); } return $name; |
Leave a Reply
You must be logged in to post a comment.