Hello All -
Got a problem with wordwrap() when using it to wrap text with spaces between words for output in a plain text email.
Testing email client is outlook 2010.
I'm calling the function like so:
$bodyText = wordwrap($temp['Text'], 70, "\n", FALSE);
Now, if I put in a long long string of characters WITHOUT SPACES, the function wraps everything nicely to 70 chars as expected.
BUT, if it's a paragraph of regular text including spaces, it doesn't wrap the line at all.
I've seen some discussion regarding utf-8 strings and have tried some of those function alternatives but, unfortunately, with the exact same result as php's own wordwrap function.
So, I'm at a loss - can anyone let me know what's going on and how I can fix this?