PHP function to make slug (URL string)

Note: from WordPress

Use it like this:

Code: