I'm currently creating a PNG image from a random sql statment. Its just outputting text, but I was to limit the number of chars per line. I have this working, but its repeating the text to the next line.
Below is the code on how I'm doing this.
imagestring($image, 1, 365, 5, "ID: $id", $font_black);
// Break quote up into pieces 60 characters long
$str = wordwrap($quote, 60, '|');
$lines = explode('|', $str);
The output would be like,
The quick brown fox jumped
fox jumped over the cat.
If anyone has any ideas on how to fix this that would be awesome!