PHP Function to make safe URL slugs

Slugs are parts of URL which consists of human readable words. If you’re using slugs for your custom webapp, chances are that you’ll need a function to sanitize and remove special characters and URL invalid characters....