How-to articles, tricks, and solutions about TRUNCATION
Truncate a string to first n characters of a string and add three dots if any characters are removed
To truncate a string to the first n characters and add three dots if any characters are removed in PHP, you can use the following function.