I have a plain text (consists of paragraphs) for a newsletter, and it has to be 74-character long (included spaces) for each line. That means I have to put '\r' after the 74th character. To make things a little bit more challenging
I was thinking that the logic would be:
first, check if within every 75 characters a '\r' already exists. If yes, then don't do anything. If no, insert '\r'. After inserting '\r', the next character is set back to 1st character (place 1), to count the next 75 characters.
I just don't know how to implement that with PHP. Or maybe there's a better idea.
Appreciate that!