Using wordwrap
so that I can get whole words, how can I split a string of upto 255 characters into two line variables of 45 characters and ignore the rest?
I would use:
$line1 = substr($str, 0, 45);
$line2 = substr($str, 45, 45);
But I need the break to be a a word, not the 45th character.