How to count characters including white space and then break after a certain length for instance how would i break a string after 25 characters onto a new line using PHP?
How to count characters including white space and then break after a certain length
Share
Try chunk_split() if you don’t mind cutting words in half. It treats whitespace as any other char.