Truncate a string in PHP

Occasionally you will get a string that is longer than what you designed for, this gets fixed by printing a set amount from the string and affixing … onto the…