Chop A String On a Whole Word With PHP This function breaks a string on a whole word and makes sure that the string doesn’t go over the set amount of characters you set.