translate non alphanumeric characters from file name into underscores

/ Published in: PHP
Save to your folder(s)

Translate non alphanumeric characters into an underscore. Doesn't create double underscores if there's two spaces in a row. Also turns name to lowercase. Use with trim to avoid spaces at front or end.


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.