Truncate Text at Word Break


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

This function will truncate strings only at word breaks which can be used to show a teaser for complete article without breaking words.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.