This handy function reduces a string to a given length, but doesn’t cut-off the last word if it appears in between the limit. The function would truncate the string to the end of the previous word instead…
PHP Substring – Respecting the Last Word
0