Trim extra characters from string (truncate string)


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

If a string exceeds x characters (defaults to 100), trims the string to the first x characters and appends a tail to the end of the truncated string (defaults to an ellipsis).

URL: http://www.bluecapwebdesign.com

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.