PHP SoftHyphens Function


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

This function will add soft hyphens after every 3rd character in words of over 10 characters. It will not leave fewer than three characters following a soft hyphen.

Known bugs: Adds soft hyphens to URLs and within HTML tags.

URL: http://www.addedbytes.com

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.