Page 1 of 1

Long text line break function?

Posted: Sat Sep 11, 2004 8:16 am
by AGISB
I want to print out a long text from a MySQL database.

For HTML I place it in a table and get the text wraps into the next line

If I print the text the line cuts of at the pageend so I have to put a line feed at a maximum displayed letters (after the last word)

I can just count and divide into multiple strings but is there a function that does this automatically?

Posted: Sat Sep 11, 2004 11:32 am
by feyd
[php_man]wordwrap[/php_man]

Posted: Sat Sep 11, 2004 12:09 pm
by McGruff
CSS is another solution. You can set different styles for different media.